Skip to content

Commit

Permalink
Add back musllinux-cross
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonxslays committed Feb 25, 2024
1 parent 0e1a800 commit ef94e05
Showing 1 changed file with 47 additions and 46 deletions.
93 changes: 47 additions & 46 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -232,52 +232,53 @@ jobs:
name: wheels
path: dist

# TODO: uraimo/run-on-arch-action seems broken?
# musllinux-cross:
# runs-on: ubuntu-latest
# strategy:
# fail-fast: false
# matrix:
# platform:
# - target: aarch64-unknown-linux-musl
# arch: aarch64
# - target: armv7-unknown-linux-musleabihf
# arch: armv7

# steps:
# - name: Checkout code
# uses: actions/checkout@v4

# - name: Setup Python
# uses: actions/setup-python@v4
# with:
# python-version: 3.9

# - name: Build wheels - ${{ matrix.platform.target }}
# uses: PyO3/maturin-action@v1
# with:
# target: ${{ matrix.platform.target }}
# manylinux: musllinux_1_2
# args: --release -i 3.8 3.9 3.10 3.11 3.12 -o dist

# - name: Install built wheel - ${{ matrix.platform.arch }}
# uses: uraimo/[email protected]
# with:
# arch: ${{ matrix.platform.arch }}
# distro: alpine_latest
# githubToken: ${{ github.token }}
# install: |
# apk add py3-pip
# pip3 install -U pip
# run: |
# pip3 install piston_rspy --no-index --find-links dist/ --force-reinstall
# python3 -c "import piston_rspy"

# - name: Upload wheels
# uses: actions/upload-artifact@v3
# with:
# name: wheels
# path: dist
musllinux-cross:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
platform:
- target: aarch64-unknown-linux-musl
arch: aarch64
- target: armv7-unknown-linux-musleabihf
arch: armv7

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: 3.9

- name: Build wheels - ${{ matrix.platform.target }}
uses: PyO3/maturin-action@v1
with:
target: ${{ matrix.platform.target }}
manylinux: musllinux_1_2
args: --release -i 3.8 3.9 3.10 3.11 3.12 -o dist

- name: Install built wheel - ${{ matrix.platform.arch }}
uses: uraimo/[email protected]
with:
arch: ${{ matrix.platform.arch }}
distro: alpine_latest
githubToken: ${{ github.token }}
install: |
apk add py3-pip
python3 -m venv .venv
source .venv/bin/activate
pip3 install -U pip
run: |
pip3 install piston_rspy --no-index --find-links dist/ --force-reinstall
python3 -c "import piston_rspy"
- name: Upload wheels
uses: actions/upload-artifact@v3
with:
name: wheels
path: dist

release:
name: Release
Expand Down

0 comments on commit ef94e05

Please sign in to comment.