Skip to content

Build checks in gh actions #33

Build checks in gh actions

Build checks in gh actions #33

Workflow file for this run

name: Release
on:
workflow_dispatch:
push:
branches: [main]
tags: [v*]
pull_request:
branches: [main]
jobs:
build-linux:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Toolchain
run: ./scripts/setup-linux.sh
- name: Build for Linux
run: ./scripts/build.sh build
- name: Build for Debian
run: ./scripts/build.sh debian
- name: Build for Windows with MinGW
run: ./scripts/build.sh mingw
- name: Build for Windows on ARM with MinGW
run: ./scripts/build.sh woa-mingw
- name: Build for Windows on ARM with Zig
run: ./scripts/build.sh woa-zig
- uses: actions/upload-artifact@v4
with:
name: artifact-linux
path: |
lpac-*.deb
lpac-*.zip
build-macos:
runs-on: macos
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build
run: ./scripts/build.sh macos
- uses: actions/upload-artifact@v4
with:
name: artifact-macos
path: lpac-*.zip
release:
if: startsWith(github.ref, 'refs/tags/v')
needs: [build-linux, build-macos]
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/download-artifact@v4
with:
name: artifact-linux
- uses: actions/download-artifact@v4
with:
name: artifact-macos
- name: Release
uses: softprops/action-gh-release@v1
with:
files: |
lpac-*.deb
lpac-*.zip