Skip to content

Commit

Permalink
Add musl build in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
ol-teuto committed Mar 21, 2024
1 parent 2a4c967 commit 9a3fba7
Showing 1 changed file with 42 additions and 2 deletions.
44 changes: 42 additions & 2 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -278,11 +278,51 @@ jobs:
name: wheels
path: dist

musllinux:
runs-on: ubuntu-latest
strategy:
matrix:
python:
- pypy3.9
- pypy3.10
- '3.7'
- '3.8'
- '3.9'
- '3.10'
- '3.11'
- '3.12'
target:
- x86_64
- i686
- aarch64
- armv7
steps:
- uses: actions/checkout@v3
- name: Build Wheels cramjam-python
uses: PyO3/maturin-action@v1
with:
target: ${{ matrix.target }}
sccache: true
manylinux: musllinux_1_1
args: -i ${{ matrix.python }} --release --out dist --manifest-path cramjam-python/Cargo.toml
- name: Build Wheels cramjam-cli
uses: PyO3/maturin-action@v1
with:
target: ${{ matrix.target }}
sccache: true
manylinux: musllinux_1_1
args: -i ${{ matrix.python }} --release --out dist --manifest-path cramjam-cli/Cargo.toml
- name: Upload wheels
uses: actions/upload-artifact@v3
with:
name: wheels
path: dist

pypi-publish-cramjam-python:
name: Upload cramjam release to PyPI
runs-on: ubuntu-latest
if: "startsWith(github.ref, 'refs/tags/')"
needs: [ macos, windows, linux, linux-cross, pypy ]
needs: [ macos, windows, linux, linux-cross, pypy, musllinux ]
environment:
name: pypi
url: https://pypi.org/p/cramjam
Expand All @@ -304,7 +344,7 @@ jobs:
name: Upload cramjam-cli release to PyPI
runs-on: ubuntu-latest
if: "startsWith(github.ref, 'refs/tags/')"
needs: [ macos, windows, linux, linux-cross, pypy ]
needs: [ macos, windows, linux, linux-cross, pypy, musllinux ]
environment:
name: pypi
url: https://pypi.org/p/cramjam-cli
Expand Down

0 comments on commit 9a3fba7

Please sign in to comment.