Skip to content

Commit

Permalink
updated ci
Browse files Browse the repository at this point in the history
  • Loading branch information
mburridge96 committed Apr 15, 2024
1 parent cbb4381 commit ab7ec5a
Showing 1 changed file with 2 additions and 38 deletions.
40 changes: 2 additions & 38 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:

env:
PACKAGE_NAME: rocraters
PYTHON_VERSION: "3.8" # to build abi3 wheels
PYTHON_VERSION: "3.9" # to build abi3 wheels

# Modified slightly from crfs-rs Python.yml
jobs:
Expand Down Expand Up @@ -92,47 +92,11 @@ jobs:
- name: Install built wheel
if: matrix.target == 'x86_64'
run: |
pip install dist/${{ env.PACKAGE_NAME }}-*.whl --no-index --find-links dist --force-reinstall
pip install rocraters --no-index --find-links dist --force-reinstall
python -c "import rocraters"
- name: Upload wheels
uses: actions/upload-artifact@v3
with:
name: wheels
path: dist

linux-cross:
runs-on: ubuntu-latest
strategy:
matrix:
target: [aarch64, armv7, s390x, ppc64le, ppc64]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Build wheels
uses: PyO3/maturin-action@v1
with:
target: ${{ matrix.target }}
manylinux: auto
args: --release --out dist -m python/Cargo.toml
- uses: uraimo/[email protected]
if: matrix.target != 'ppc64'
name: Install built wheel
with:
arch: ${{ matrix.target }}
distro: ubuntu20.04
githubToken: ${{ github.token }}
install: |
apt-get update
apt-get install -y --no-install-recommends python3 python3-pip
pip3 install -U pip
run: |
pip3 install dist/${{ env.PACKAGE_NAME }}-*.whl --no-index --find-links dist/ --force-reinstall
python3 -c "import rocraters"
- name: Upload wheels
uses: actions/upload-artifact@v3
with:
name: wheels
path: dist

0 comments on commit ab7ec5a

Please sign in to comment.