Skip to content

Commit

Permalink
ci: support attestation for *.whl files
Browse files Browse the repository at this point in the history
  • Loading branch information
R1kaB3rN committed Jan 5, 2025
1 parent ebd2231 commit 2eeecb8
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
branches:
- main
tags:
- '*'
- "*"
pull_request:
workflow_dispatch:

Expand All @@ -15,6 +15,10 @@ permissions:
jobs:
linux:
runs-on: ${{ matrix.platform.runner }}
permissions:
id-token: write
contents: write
attestations: write
strategy:
matrix:
platform:
Expand All @@ -32,13 +36,17 @@ jobs:
with:
target: ${{ matrix.platform.target }}
args: --release --out dist --find-interpreter --manifest-path ./Cargo.toml
sccache: 'true'
sccache: "true"
manylinux: auto
- name: Upload wheels
uses: actions/upload-artifact@v4
with:
name: wheels-linux-${{ matrix.platform.target }}
path: dist
- name: Generate artifact attestation
uses: actions/attest-build-provenance@v2
with:
subject-path: dist/*

sdist:
runs-on: ubuntu-24.04
Expand Down Expand Up @@ -69,4 +77,4 @@ jobs:
- name: Generate artifact attestation
uses: actions/attest-build-provenance@v1
with:
subject-path: 'wheels-*/*'
subject-path: "wheels-*/*"

0 comments on commit 2eeecb8

Please sign in to comment.