chore: use zig cc
to cross-compile for several platforms
#8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: | |
pull_request: {} | |
push: | |
branches: [master] | |
workflow_dispatch: {} | |
jobs: | |
build-aarch64-linux-gnu: | |
name: Build aarch64-linux-gnu | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: goto-bus-stop/setup-zig@v2 | |
- name: Build | |
run: | | |
./scripts/ci-build.sh "aarch64-linux-gnu" | |
build-x86_64-linux-gnu: | |
name: Build x86_64-linux-gnu | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: goto-bus-stop/setup-zig@v2 | |
- name: Build | |
run: | | |
./scripts/ci-build.sh "x86_64-linux-gnu" | |
build-aarch64-macos: | |
name: Build aarch64-macos | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: goto-bus-stop/setup-zig@v2 | |
- name: Build | |
run: | | |
./scripts/ci-build.sh "aarch64-macos" | |
build-x86_64-macos: | |
name: Build x86_64-macos | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: goto-bus-stop/setup-zig@v2 | |
- name: Build | |
run: | | |
./scripts/ci-build.sh "x86_64-macos" | |