Skip to content

Commit

Permalink
chore(build): Build nightly releases with cross instead of zig-build
Browse files Browse the repository at this point in the history
- zig recently updated its musl version, stable rustc with that new musl
  is not released yet
- zig may eliminate LLVM in the future, ziglang/zig#16270
  • Loading branch information
zonyitoo committed Jun 30, 2023
1 parent 2552181 commit 2b2afc9
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/build-nightly-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,8 @@ jobs:
rustup override set stable
rustup target add --toolchain stable ${{ matrix.target }}
- name: Setup Zig
uses: goto-bus-stop/setup-zig@v2

- name: Install cargo-zigbuild
run: cargo install cargo-zigbuild
- name: Install cross
run: cargo install cross

- name: Build ${{ matrix.target }}
timeout-minutes: 120
Expand All @@ -51,7 +48,7 @@ jobs:
fi
cd build
./build-release-zigbuild -t ${{ matrix.target }} $compile_features $compile_compress
./build-release -t ${{ matrix.target }} $compile_features $compile_compress
- name: Upload Artifacts
uses: actions/upload-artifact@v3
Expand Down

0 comments on commit 2b2afc9

Please sign in to comment.