diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index d693ae5..41dfdb1 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -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: @@ -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 @@ -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 @@ -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: @@ -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