Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
nomyfan committed Feb 19, 2024
1 parent 1211c61 commit 818dd65
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,21 +38,29 @@ jobs:

- name: Install zig
uses: korandoru/setup-zig@v1
if: matrix.os == "ubuntu-latest"
with:
zig-version: 0.11.0

- name: Install binstall
uses: cargo-bins/cargo-binstall@main
if: matrix.os == "ubuntu-latest"

- name: Install zigbuild
run: cargo binstall -y cargo-zigbuild
if: matrix.os == "ubuntu-latest"

- name: Cross build
shell: pwsh
run: |
("${{ matrix.targets }}" -split ",") | ForEach-Object {
Write-Host "Building $_"
cargo zigbuild --verbose --release --target $_
if ("${{ matrix.os }" -ne "ubuntu-latest") {
cargo build --verbose --release --target $_
} else {
cargo zigbuild --verbose --release --target $_
}
}
- name: List builds
Expand Down

0 comments on commit 818dd65

Please sign in to comment.