Skip to content

Commit

Permalink
Fix github action
Browse files Browse the repository at this point in the history
  • Loading branch information
bertaveira committed Apr 27, 2024
1 parent 6456372 commit 1855a2e
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ jobs:
submodules: true

- name: Build SDist
run: pipx run build --sdist
run: pipx run build --sdist ${{github.workspace}}/python/
- name: Move sdist to dist
run: mkdir -p dist && mv ${{github.workspace}}/python/dist/*.tar.gz dist/

- name: Check metadata
run: pipx run twine check dist/*
Expand All @@ -44,7 +46,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-13, windows-latest]
os: [ubuntu-22.04, windows-2022, macos-11]

steps:
- uses: actions/checkout@v4
Expand All @@ -55,12 +57,15 @@ jobs:
env:
CIBW_ARCHS_MACOS: universal2
CIBW_ARCHS_WINDOWS: auto ARM64
with:
package-dir: ${{github.workspace}}/python/

- name: Verify clean directory
run: git diff --exit-code
shell: bash

- uses: actions/upload-artifact@v4
working-directory: ./python
with:
name: cibw-wheels-${{ matrix.os }}
path: wheelhouse/*.whl
Expand Down

0 comments on commit 1855a2e

Please sign in to comment.