Skip to content

Commit

Permalink
feat: adding musllinux_1_1 platform (Alpine Linux) support
Browse files Browse the repository at this point in the history
  • Loading branch information
vlaci committed May 14, 2023
1 parent 85f8d61 commit 35e88c9
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,17 @@ jobs:
matrix:
include:
- target: x86_64
platform: manylinux2014
- target: aarch64
platform: manylinux2014
cross: true
- target: x86_64
platform: musllinux_1_1
- target: aarch64
platform: musllinux_1_1
cross: true
env:
CONTAINER: quay.io/pypa/${{ matrix.platform }}_${{ matrix.target }}:latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
Expand All @@ -136,9 +145,9 @@ jobs:
uses: PyO3/maturin-action@v1
with:
target: ${{ matrix.target }}
container: quay.io/pypa/manylinux2014_${{ matrix.target }}:latest
container: ${{ env.CONTAINER }}
args: --release --out dist
sccache: "true"
sccache: ${{ matrix.target == 'musllinux_1_1' }}
manylinux: auto
docker-options: -e CARGO_NET_GIT_FETCH_WITH_CLI=true
- name: Upload wheels
Expand All @@ -148,7 +157,7 @@ jobs:
path: dist
- name: Test wheels
run: |
cat << EOF | docker run -v $PWD:/usr/src -i ${{ matrix.container }} sh -ex -
cat << EOF | docker run -v $PWD:/usr/src -i $CONTAINER sh -ex -
cd /usr/src
curl -sSL https://raw.githubusercontent.com/pdm-project/pdm/main/install-pdm.py | python3.10 -
export PATH=/root/.local/bin:$PATH
Expand Down

0 comments on commit 35e88c9

Please sign in to comment.