Skip to content

Commit

Permalink
Use new musl cross build Docker images
Browse files Browse the repository at this point in the history
  • Loading branch information
zanieb committed Oct 16, 2024
1 parent 64dfe73 commit 596a03c
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,15 @@ jobs:
strategy:
fail-fast: false
matrix:
target: [i686-musl, armv7-musleabihf, aarch64-musl, x86_64-musl]
target:
[
i686-unknown-linux-musl,
armv7-unknown-linux-musleabihf,
aarch64-unknown-linux-musl,
x86_64-unknown-linux-musl,
]
container:
image: docker://benfred/rust-musl-cross:${{ matrix.target }}
image: ghcr.io/benfred/rust-musl-cross:${{ matrix.target }}
env:
RUSTUP_HOME: /root/.rustup
CARGO_HOME: /root/.cargo
Expand All @@ -101,13 +107,13 @@ jobs:
- name: Build
run: |
python3 -m pip install --upgrade maturin
maturin build --release -o dist --target $RUST_MUSL_CROSS_TARGET --features unwind
maturin build --release -o dist --target ${{ matrix.target }} --features unwind
maturin sdist -o dist
if: matrix.target == 'x86_64-musl'
- name: Build
run: |
python3 -m pip install --upgrade maturin
maturin build --release -o dist --target $RUST_MUSL_CROSS_TARGET
maturin build --release -o dist --target ${{ matrix.target }}
maturin sdist -o dist
if: matrix.target != 'x86_64-musl'
- name: Rename Wheels
Expand Down

0 comments on commit 596a03c

Please sign in to comment.