Skip to content

Commit

Permalink
See if we can attest build wheels
Browse files Browse the repository at this point in the history
  • Loading branch information
urschrei committed May 4, 2024
1 parent ec93ff9 commit 5786f0b
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
name: Build and test wheels, release on new tag

permissions:
id-token: write
attestations: write
contents: read

env:
librepo: polyline-ffi
rustlib: polylineffi
Expand Down Expand Up @@ -108,11 +114,18 @@ jobs:
CIBW_ARCHS_LINUX: "auto aarch64"
CIBW_TEST_SKIP: "*:arm64"

- name: Attest Build Provenance
id: attest
uses: actions/attest-build-provenance@v1
with:
subject-path: "./wheelhouse/*.whl"

- uses: actions/upload-artifact@v4
name: Upload repaired wheels as artifact
with:
name: wheels-${{ matrix.os }}-${{ matrix.arch }}
name: cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }}
path: |
${{ steps.attest.outputs.bundle-path }}
./wheelhouse/*.whl
./wheelhouse/*.so
./wheelhouse/*.dylib
Expand Down

0 comments on commit 5786f0b

Please sign in to comment.