fix(release): only x86_64 integrates a lower version of glibc because docker arm64 builds too slowly (#653)
This commit is contained in:
parent
302f207951
commit
f3ee77dd5b
12
.github/workflows/release.yaml
vendored
12
.github/workflows/release.yaml
vendored
@ -62,8 +62,6 @@ jobs:
|
|||||||
os_name: linux
|
os_name: linux
|
||||||
arch: aarch64
|
arch: aarch64
|
||||||
rust_target: aarch64-unknown-linux-gnu
|
rust_target: aarch64-unknown-linux-gnu
|
||||||
docker_platform: linux/arm64
|
|
||||||
container: quay.io/pypa/manylinux2014_aarch64 # for glibc 2.17
|
|
||||||
- os: macos-13
|
- os: macos-13
|
||||||
os_name: darwin
|
os_name: darwin
|
||||||
arch: x86_64
|
arch: x86_64
|
||||||
@ -87,21 +85,21 @@ jobs:
|
|||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- uses: Swatinem/rust-cache@v2
|
- uses: Swatinem/rust-cache@v2
|
||||||
if: ${{ matrix.config.os_name != 'linux' }}
|
if: ${{ matrix.config.container == null }}
|
||||||
- uses: dtolnay/rust-toolchain@master
|
- uses: dtolnay/rust-toolchain@master
|
||||||
if: ${{ matrix.config.os_name != 'linux' }}
|
if: ${{ matrix.config.container == null }}
|
||||||
with:
|
with:
|
||||||
targets: ${{ matrix.config.rust_target }}
|
targets: ${{ matrix.config.rust_target }}
|
||||||
toolchain: 1.80.0
|
toolchain: 1.80.0
|
||||||
- name: Build all crates
|
- name: Build all crates
|
||||||
if: ${{ matrix.config.os_name != 'linux' }}
|
if: ${{ matrix.config.container == null }}
|
||||||
run: |
|
run: |
|
||||||
cargo build --release --features ${{ matrix.feature }}
|
cargo build --release --features ${{ matrix.feature }}
|
||||||
|
|
||||||
- name: Build all crates with glibc 2.17 # for glibc 2.17
|
- name: Build all crates with glibc 2.17 # for glibc 2.17
|
||||||
if: ${{ matrix.config.os_name == 'linux' }}
|
if: ${{ matrix.config.container != null }}
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get install -y qemu qemu-user-static
|
# sudo apt-get install -y qemu qemu-user-static
|
||||||
docker run \
|
docker run \
|
||||||
--rm \
|
--rm \
|
||||||
-v $(pwd):/workspace \
|
-v $(pwd):/workspace \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user