Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add musl build in CI #151

Merged
merged 1 commit into from
Mar 21, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading