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
This commit is contained in:
zonyitoo
2023-06-30 23:41:32 +08:00
parent 2552181544
commit 2b2afc9a3c
+3 -6
View File
@@ -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