Skip to content
This repository was archived by the owner on Feb 4, 2025. It is now read-only.

Commit f5995c1

Browse files
committed
feat: adding musllinux_1_1 platform (Alpine Linux) support
1 parent a487e9f commit f5995c1

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

.github/workflows/CI.yml

+12-3
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,17 @@ jobs:
120120
matrix:
121121
include:
122122
- target: x86_64
123+
platform: manylinux2014
123124
- target: aarch64
125+
platform: manylinux2014
124126
cross: true
127+
- target: x86_64
128+
platform: musllinux_1_1
129+
- target: aarch64
130+
platform: musllinux_1_1
131+
cross: true
132+
env:
133+
CONTAINER: quay.io/pypa/${{ matrix.platform }}_${{ matrix.target }}:latest
125134
steps:
126135
- uses: actions/checkout@v3
127136
- uses: actions/setup-python@v4
@@ -136,9 +145,9 @@ jobs:
136145
uses: PyO3/maturin-action@v1
137146
with:
138147
target: ${{ matrix.target }}
139-
container: quay.io/pypa/manylinux2014_${{ matrix.target }}:latest
148+
container: ${{ env.CONTAINER }}
140149
args: --release --out dist
141-
sccache: "true"
150+
sccache: ${{ matrix.target == 'musllinux_1_1' }}
142151
manylinux: auto
143152
docker-options: -e CARGO_NET_GIT_FETCH_WITH_CLI=true
144153
- name: Upload wheels
@@ -148,7 +157,7 @@ jobs:
148157
path: dist
149158
- name: Test wheels
150159
run: |
151-
cat << EOF | docker run -v $PWD:/usr/src -i ${{ matrix.container }} sh -ex -
160+
cat << EOF | docker run -v $PWD:/usr/src -i $CONTAINER sh -ex -
152161
cd /usr/src
153162
curl -sSL https://raw.githubusercontent.com/pdm-project/pdm/main/install-pdm.py | python3.10 -
154163
export PATH=/root/.local/bin:$PATH

0 commit comments

Comments
 (0)