From 2b2afc9a3cb035d3ccc08078bf66f936bc289ef9 Mon Sep 17 00:00:00 2001 From: zonyitoo Date: Fri, 30 Jun 2023 23:34:16 +0800 Subject: [PATCH] chore(build): Build nightly releases with cross instead of zig-build - 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 --- .github/workflows/build-nightly-release.yml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build-nightly-release.yml b/.github/workflows/build-nightly-release.yml index 1d4b77a8..16c90d58 100644 --- a/.github/workflows/build-nightly-release.yml +++ b/.github/workflows/build-nightly-release.yml @@ -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 @@ -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