ci: Generate artifact attestation

This commit is contained in:
Pun Butrach 2024-11-22 09:18:35 +07:00 committed by oSumAtrIX
parent 8285e73cd7
commit 1a089aa88a
No known key found for this signature in database
GPG Key ID: A9B3094ACDB604B4

View File

@ -16,6 +16,9 @@ jobs:
build:
name: build
runs-on: ubuntu-latest
permissions:
id-token: write
attestations: write
strategy:
matrix:
target_arch: [x86_64, x86, arm64-v8a, armeabi-v7a]
@ -35,8 +38,14 @@ jobs:
env:
NDK_TOOLCHAIN: ${{ steps.setup-ndk.outputs.ndk-path }}/toolchains/llvm/prebuilt/linux-x86_64
- name: Attest build provenance
uses: actions/attest-build-provenance@v1
with:
subject-name: dist-${{ matrix.target_arch }}
subject-path: dist
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: dist-${{ matrix.target_arch }}
path: dist
path: dist