Skip to content

Commit

Permalink
Musl support for da boize
Browse files Browse the repository at this point in the history
  • Loading branch information
Adoni5 committed Aug 31, 2023
1 parent 7198be1 commit bfff05e
Showing 1 changed file with 26 additions and 15 deletions.
41 changes: 26 additions & 15 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,14 @@ jobs:
include:
# musllinux
- os: ubuntu
target: x86_64
manylinux: musllinux_1_1
target: x86_64-unknown-linux-musl
manylinux: musllinux_1_2
- os: ubuntu
target: aarch64
manylinux: musllinux_1_1


target: aarch64-unknown-linux-musl
manylinux: musllinux_1_2
- os: ubuntu
target: armv7-unknown-linux-musleabihf
manylinux: musllinux_1_2
steps:
- uses: actions/checkout@v3
with:
Expand All @@ -51,19 +52,31 @@ jobs:
args: --release --out dist -i 3.8 3.9 3.10 3.11 pypy3.8 pypy3.9 pypy3.10
sccache: 'true'
manylinux: ${{ matrix.manylinux || 'auto' }}
- name: Install built wheel
- name: Install and test built x86_64 wheel
if: matrix.target == 'x86_64'
run: |
pip install mappy-rs --no-index --find-links dist --force-reinstall
pip install pytest
pytest -sv
# Test musl wheels fro x86
- name: Install and test build x86_64 musl wheel
if: matrix.target == 'x86_64-unknown-linux-musl'
uses: addnab/docker-run-action@v3
with:
image: alpine:latest
options: -v ${{ github.workspace }}:/io -w /io
run: |
apk add py3-pip
pip3 install -U pip pytest
pip3 install mappy-rs --no-index --find-links /io/dist/ --force-reinstall
python3 -m pytest -sv
- name: Upload wheels
uses: actions/upload-artifact@v3
with:
name: wheels
path: dist

test-builds-arch:
test-builds-aarch:
name: run test of build on ${{ matrix.target }}-${{ matrix.distro }}
needs: [linux]
runs-on: ubuntu-latest
Expand All @@ -72,7 +85,7 @@ jobs:
fail-fast: false
matrix:
target: [aarch64, armv7]
distro: ['ubuntu22.04']
distro: ['ubuntu22.04', 'alpine_latest']

steps:
- uses: actions/checkout@v3
Expand All @@ -95,18 +108,16 @@ jobs:
echo "installing python & pip with apt-get..."
apt-get update
apt-get install -y --no-install-recommends python3 python3-pip python3-venv
pip install -U pip pytest
else
echo "installing python & pip with apk..."
apk update
apk add python3 py3-pip maturin
apk add py3-pip
pip3 install -U pip pytest
fi
run: |
set -x
python3 -m venv venv
source venv/bin/activate
python3 -m pip install mappy-rs --no-index --find-links dist --force-reinstall
python3 -m pip install pytest
python3 -m pytest -sv
macos:
Expand Down Expand Up @@ -168,7 +179,7 @@ jobs:
name: Release
runs-on: ubuntu-latest
if: "startsWith(github.ref, 'refs/tags/')"
needs: [linux, macos, sdist]
needs: [linux, test-builds-aarch, macos, sdist]
permissions:
# Used to upload release artifacts
contents: write
Expand Down

0 comments on commit bfff05e

Please sign in to comment.