Skip to content

Commit

Permalink
fix(release): only x86_64 integrates a lower version of glibc because…
Browse files Browse the repository at this point in the history
… docker arm64 builds too slowly (#653)
  • Loading branch information
yetone authored Sep 26, 2024
1 parent 302f207 commit f3ee77d
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 \
Expand Down

0 comments on commit f3ee77d

Please sign in to comment.