Skip to content

Commit

Permalink
ci update
Browse files Browse the repository at this point in the history
  • Loading branch information
mburridge96 committed Apr 16, 2024
1 parent 2146fc5 commit 8b3b220
Showing 1 changed file with 3 additions and 61 deletions.
64 changes: 3 additions & 61 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,65 +14,6 @@ env:

# Modified slightly from crfs-rs Python.yml
jobs:
macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: ${{ env.PYTHON_VERSION }}
architecture: x64
- uses: dtolnay/rust-toolchain@stable
- name: Build wheels - x86_64
uses: PyO3/maturin-action@v1
with:
target: x86_64
args: --release --out dist --sdist -m python/Cargo.toml
- name: Install built wheel - x86_64
run: |
pip install rocraters --no-index --find-links dist --force-reinstall
python -c "import rocraters"
- name: Build wheels - universal2
uses: PyO3/maturin-action@v1
with:
target: universal2-apple-darwin
args: --release --out dist -m python/Cargo.toml
- name: Install built wheel - universal2
run: |
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

windows:
runs-on: windows-latest
strategy:
matrix:
target: [x64, x86]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: ${{ env.PYTHON_VERSION }}
architecture: ${{ matrix.target }}
- uses: dtolnay/rust-toolchain@stable
- name: Build wheels
uses: PyO3/maturin-action@v1
with:
target: ${{ matrix.target }}
args: --release --out dist -m python/Cargo.toml
- name: Install built wheel
run: |
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:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -110,13 +51,14 @@ jobs:
env:
MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
steps:
- uses: actions/download-artifact@v4
- uses: actions/download-artifact@v3
with:
name: wheels
path: dist
- name: Publish to PyPI
uses: PyO3/maturin-action@v1
with:
command: upload
args: --repository=testpypi --non-interactive --skip-existing wheels-*/*"
args: --repository=testpypi --non-interactive --skip-existing *


0 comments on commit 8b3b220

Please sign in to comment.