Skip to content

Commit

Permalink
Fix manylinux and musllinux CI builds
Browse files Browse the repository at this point in the history
  • Loading branch information
facutuesca committed Oct 15, 2024
1 parent 8d88010 commit ac67809
Showing 1 changed file with 18 additions and 28 deletions.
46 changes: 18 additions & 28 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,59 +20,46 @@ permissions:

jobs:
linux:
runs-on: ${{ matrix.platform.runner }}
runs-on: ubuntu-latest
strategy:
matrix:
platform:
- runner: ubuntu-latest
target: x86_64
- runner: ubuntu-latest
target: x86
- runner: ubuntu-latest
target: aarch64
- runner: ubuntu-latest
target: armv7
- runner: ubuntu-latest
target: s390x
- runner: ubuntu-latest
target: ppc64le
- target: x86_64
- target: x86
- target: aarch64
- target: armv7
- target: s390x
- target: ppc64le
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: 3.x

- name: Install openssl
run: |
sudo apt-get update
sudo apt-get install --yes --no-install-recommends libssl-dev
- name: Build wheels
uses: PyO3/maturin-action@v1
with:
target: ${{ matrix.platform.target }}
args: --release --out dist --find-interpreter
sccache: 'true'
manylinux: auto
before-script-linux: |
yum update
yum install -y pkg-config openssl-devel
- name: Upload wheels
uses: actions/upload-artifact@v4
with:
name: wheels-linux-${{ matrix.platform.target }}
path: dist

musllinux:
runs-on: ${{ matrix.platform.runner }}
runs-on: ubuntu-latest
strategy:
matrix:
platform:
- runner: ubuntu-latest
target: x86_64
- runner: ubuntu-latest
target: x86
- runner: ubuntu-latest
target: aarch64
- runner: ubuntu-latest
target: armv7
- target: x86_64
- target: x86
- target: aarch64
- target: armv7
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
Expand All @@ -85,6 +72,9 @@ jobs:
args: --release --out dist --find-interpreter
sccache: 'true'
manylinux: musllinux_1_2
before-script-linux: |
apt update
apt install -y pkg-config libssl-dev openssl
- name: Upload wheels
uses: actions/upload-artifact@v4
with:
Expand Down

0 comments on commit ac67809

Please sign in to comment.