@@ -22,31 +22,46 @@ jobs:
2222 include :
2323 - build : x86_64-linux
2424 os : ubuntu-latest
25+ env :
26+ CARGO_BUILD_TARGET : x86_64-unknown-linux-gnu
27+ DOCKER_IMAGE : ./ci/docker/x86_64-linux/Dockerfile
28+ - build : aarch64-linux
29+ os : ubuntu-latest
30+ env :
31+ CARGO_BUILD_TARGET : aarch64-unknown-linux-gnu
32+ DOCKER_IMAGE : ./ci/docker/aarch64-linux/Dockerfile
33+
2534 - build : x86_64-macos
2635 os : macos-latest
27- target : x86_64-apple-darwin
36+ env :
37+ CARGO_BUILD_TARGET : x86_64-apple-darwin
38+ MACOSX_DEPLOYMENT_TARGET : 10.12
2839 - build : aarch64-macos
2940 os : macos-latest
30- target : aarch64-apple-darwin
41+ env :
42+ CARGO_BUILD_TARGET : aarch64-apple-darwin
43+ MACOSX_DEPLOYMENT_TARGET : 10.12
44+
3145 - build : x86_64-windows
3246 os : windows-latest
33- - build : aarch64-linux
34- os : ubuntu-latest
35- target : aarch64-unknown-linux-gnu
47+ env :
48+ CARGO_BUILD_TARGET : x86_64-pc-windows-msvc
49+ RUSTFLAGS : -Ctarget-feature=+crt-static
50+ - build : aarch64-windows
51+ os : windows-11-arm
52+ env :
53+ CARGO_BUILD_TARGET : aarch64-pc-windows-msvc
54+ RUSTFLAGS : -Ctarget-feature=+crt-static
55+
56+ env : ${{ matrix.env }}
3657 steps :
3758 - uses : actions/checkout@v4
3859 with :
3960 submodules : true
4061 - run : rustup update stable --no-self-update && rustup default stable
41- - uses : bytecodealliance/wasmtime/.github/actions/binary-compatible-builds@v17.0.1
42- with :
43- name : ${{ matrix.build }}
44- - run : |
45- echo CARGO_BUILD_TARGET=${{ matrix.target }} >> $GITHUB_ENV
46- rustup target add ${{ matrix.target }}
47- if: matrix.target != ''
48- - run : $CENTOS cargo build --release
49- - run : ./ci/build-tarballs.sh "${{ matrix.build }}" "${{ matrix.target }}"
62+ - run : rustup target add $CARGO_BUILD_TARGET
63+ - run : ./ci/build-release-artifacts.sh
64+ - run : ./ci/build-tarballs.sh "${{ matrix.build }}"
5065 - uses : actions/upload-artifact@v4
5166 with :
5267 name : bins-${{ matrix.build }}
0 commit comments