Skip to content

Commit

Permalink
Fix building in CI.
Browse files Browse the repository at this point in the history
Fix building in CI.
  • Loading branch information
ghuls committed Nov 13, 2024
1 parent f3603f0 commit 3a0bf12
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# This file is autogenerated by maturin v1.7.0
# This file is autogenerated by maturin v1.7.4
# To update, run
#
# maturin generate-ci github --zig --pytest --platform manylinux macos
Expand Down Expand Up @@ -38,7 +38,7 @@ jobs:
with:
target: ${{ matrix.platform.target }}
args: --release --out dist --zig
sccache: 'true'
sccache: 'false'
manylinux: auto
- name: Upload wheels
uses: actions/upload-artifact@v4
Expand Down Expand Up @@ -84,7 +84,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: 3.x
python-version: 3.12
- name: Build wheels
uses: PyO3/maturin-action@v1
with:
Expand Down Expand Up @@ -122,15 +122,25 @@ jobs:

release:
name: Release
environment: release
runs-on: ubuntu-latest
if: "startsWith(github.ref, 'refs/tags/')"
environment: release
if: ${{ startsWith(github.ref, 'refs/tags/') || github.event_name == 'workflow_dispatch' }}
needs: [linux, macos, sdist]
permissions:
# Use to sign the release artifacts
id-token: write
# Used to upload release artifacts
contents: write
# Used to generate artifact attestation
attestations: write
steps:
- uses: actions/download-artifact@v4
- name: Generate artifact attestation
uses: actions/attest-build-provenance@v1
with:
subject-path: 'wheels-*/*'
- name: Publish to PyPI
if: "startsWith(github.ref, 'refs/tags/')"
uses: PyO3/maturin-action@v1
with:
command: upload
Expand Down

0 comments on commit 3a0bf12

Please sign in to comment.