From 95f7d21b50fcac2fad95a348ed7ccf8fc75c21ae Mon Sep 17 00:00:00 2001 From: Ihor Kalnytskyi Date: Mon, 25 Nov 2024 22:32:53 +0200 Subject: [PATCH] Fix windows attestation --- .github/workflows/release.yml | 26 ++++++++++++++++---------- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0dd0490..d4a96e6 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -2,7 +2,7 @@ name: Build and Release on: push: - branches: [ master ] + branches: [ master, bug/ci-windows-attestation ] tags: - "v*" @@ -48,18 +48,18 @@ jobs: strategy: matrix: include: - - target: x86_64-unknown-linux-gnu - os: ubuntu-latest - name: xsnippet-api-x86_64-linux.gz - - target: aarch64-unknown-linux-gnu - os: ubuntu-latest - name: xsnippet-api-aarch64-linux.gz + # - target: x86_64-unknown-linux-gnu + # os: ubuntu-latest + # name: xsnippet-api-x86_64-linux.gz + # - target: aarch64-unknown-linux-gnu + # os: ubuntu-latest + # name: xsnippet-api-aarch64-linux.gz - target: x86_64-pc-windows-msvc os: windows-latest name: xsnippet-api-x86_64-windows.exe.7z - - target: aarch64-apple-darwin - os: macos-latest - name: xsnippet-api-aarch64-macos.gz + # - target: aarch64-apple-darwin + # os: macos-latest + # name: xsnippet-api-aarch64-macos.gz runs-on: ${{ matrix.os }} @@ -101,6 +101,12 @@ jobs: TARGET: ${{ matrix.target }} RELEASE_TAG: ${{ needs.create_release.outputs.release_tag }} + - uses: mxschmitt/action-tmate@v3 + with: + limit-access-to-actor: false + env: + ASSET_PATH: ${{ steps.build.outputs.asset_path }} + - uses: actions/attest-build-provenance@v1 with: subject-path: ${{ steps.build.outputs.asset_path }}