fix(release): only x86_64 integrates a lower version of glibc because docker arm64 builds too slowly (#653)

This commit is contained in:
yetone 2024-09-27 02:27:18 +08:00 committed by GitHub
parent 302f207951
commit f3ee77dd5b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -62,8 +62,6 @@ jobs:
os_name: linux
arch: aarch64
rust_target: aarch64-unknown-linux-gnu
docker_platform: linux/arm64
container: quay.io/pypa/manylinux2014_aarch64 # for glibc 2.17
- os: macos-13
os_name: darwin
arch: x86_64
@ -87,21 +85,21 @@ jobs:
- uses: actions/checkout@v4
- uses: Swatinem/rust-cache@v2
if: ${{ matrix.config.os_name != 'linux' }}
if: ${{ matrix.config.container == null }}
- uses: dtolnay/rust-toolchain@master
if: ${{ matrix.config.os_name != 'linux' }}
if: ${{ matrix.config.container == null }}
with:
targets: ${{ matrix.config.rust_target }}
toolchain: 1.80.0
- name: Build all crates
if: ${{ matrix.config.os_name != 'linux' }}
if: ${{ matrix.config.container == null }}
run: |
cargo build --release --features ${{ matrix.feature }}
- name: Build all crates with glibc 2.17 # for glibc 2.17
if: ${{ matrix.config.os_name == 'linux' }}
if: ${{ matrix.config.container != null }}
run: |
sudo apt-get install -y qemu qemu-user-static
# sudo apt-get install -y qemu qemu-user-static
docker run \
--rm \
-v $(pwd):/workspace \