From 8b3b22092118fd66e508c11ea05a13a124bf3cb8 Mon Sep 17 00:00:00 2001 From: Matt Burridge Date: Tue, 16 Apr 2024 14:33:42 +0100 Subject: [PATCH] ci update --- .github/workflows/python.yml | 64 ++---------------------------------- 1 file changed, 3 insertions(+), 61 deletions(-) diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index aec4d2b..938140d 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -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 @@ -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 *