-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cbb4381
commit ab7ec5a
Showing
1 changed file
with
2 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: | ||
|
@@ -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 | ||
|