Skip to content

Commit

Permalink
move attest-build-provenance to the last
Browse files Browse the repository at this point in the history
  • Loading branch information
shogo82148 committed Jun 30, 2024
1 parent a6ec811 commit 522a126
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 32 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/darwin-arm64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,6 @@ jobs:
PERL5LIB: ${{ github.workspace }}/scripts/darwin/local/lib/perl5
working-directory: ./scripts/darwin

- uses: actions/attest-build-provenance@v1
with:
subject-path: ${{ runner.temp }}/perl.tar.zstd

- name: upload
run: |
ACTIONS_VERSION=v$(<"$GITHUB_WORKSPACE/package.json" jq -r .version)
Expand All @@ -123,6 +119,10 @@ jobs:
env:
GITHUB_TOKEN: ${{ github.token }}

- uses: actions/attest-build-provenance@v1
with:
subject-path: ${{ runner.temp }}/*.tar.zstd

build-multi-thread:
runs-on: macos-14
needs:
Expand Down Expand Up @@ -172,14 +172,14 @@ jobs:
PERL5LIB: ${{ github.workspace }}/scripts/darwin/local/lib/perl5
working-directory: ./scripts/darwin

- uses: actions/attest-build-provenance@v1
with:
subject-path: ${{ runner.temp }}/perl.tar.zstd

- name: upload
run: |
ACTIONS_VERSION=v$(<"$GITHUB_WORKSPACE/package.json" jq -r .version)
mv "$RUNNER_TEMP/perl.tar.zstd" "$RUNNER_TEMP/perl-$PERL_VERSION-darwin-arm64-multi-thread.tar.zstd"
gh release upload --clobber "$ACTIONS_VERSION" "$RUNNER_TEMP/perl-$PERL_VERSION-darwin-arm64-multi-thread.tar.zstd"
env:
GITHUB_TOKEN: ${{ github.token }}

- uses: actions/attest-build-provenance@v1
with:
subject-path: ${{ runner.temp }}/*.tar.zstd
16 changes: 8 additions & 8 deletions .github/workflows/darwin-x64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,6 @@ jobs:
PERL5LIB: ${{ github.workspace }}/scripts/darwin/local/lib/perl5
working-directory: ./scripts/darwin

- uses: actions/attest-build-provenance@v1
with:
subject-path: ${{ runner.temp }}/perl.tar.zstd

- name: upload
run: |
ACTIONS_VERSION=v$(<"$GITHUB_WORKSPACE/package.json" jq -r .version)
Expand All @@ -123,6 +119,10 @@ jobs:
env:
GITHUB_TOKEN: ${{ github.token }}

- uses: actions/attest-build-provenance@v1
with:
subject-path: ${{ runner.temp }}/*.tar.zstd

build-multi-thread:
runs-on: macos-12
needs:
Expand Down Expand Up @@ -172,14 +172,14 @@ jobs:
PERL5LIB: ${{ github.workspace }}/scripts/darwin/local/lib/perl5
working-directory: ./scripts/darwin

- uses: actions/attest-build-provenance@v1
with:
subject-path: ${{ runner.temp }}/perl.tar.zstd

- name: upload
run: |
ACTIONS_VERSION=v$(<"$GITHUB_WORKSPACE/package.json" jq -r .version)
mv "$RUNNER_TEMP/perl.tar.zstd" "$RUNNER_TEMP/perl-$PERL_VERSION-darwin-x64-multi-thread.tar.zstd"
gh release upload --clobber "$ACTIONS_VERSION" "$RUNNER_TEMP/perl-$PERL_VERSION-darwin-x64-multi-thread.tar.zstd"
env:
GITHUB_TOKEN: ${{ github.token }}

- uses: actions/attest-build-provenance@v1
with:
subject-path: ${{ runner.temp }}/*.tar.zstd
16 changes: 8 additions & 8 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,6 @@ jobs:
PERL5LIB: ${{ github.workspace }}/scripts/linux/local/lib/perl5
working-directory: ./scripts/linux

- uses: actions/attest-build-provenance@v1
with:
subject-path: ${{ runner.temp }}/perl.tar.zstd

- name: upload
run: |
ACTIONS_VERSION=v$(<"$GITHUB_WORKSPACE/package.json" jq -r .version)
Expand All @@ -123,6 +119,10 @@ jobs:
env:
GITHUB_TOKEN: ${{ github.token }}

- uses: actions/attest-build-provenance@v1
with:
subject-path: ${{ runner.temp }}/*.tar.zstd

build-multi-thread:
runs-on: ubuntu-20.04
needs:
Expand Down Expand Up @@ -171,14 +171,14 @@ jobs:
PERL5LIB: ${{ github.workspace }}/scripts/linux/local/lib/perl5
working-directory: ./scripts/linux

- uses: actions/attest-build-provenance@v1
with:
subject-path: ${{ runner.temp }}/perl.tar.zstd

- name: upload
run: |
ACTIONS_VERSION=v$(<"$GITHUB_WORKSPACE/package.json" jq -r .version)
mv "$RUNNER_TEMP/perl.tar.zstd" "$RUNNER_TEMP/perl-$PERL_VERSION-linux-x64-multi-thread.tar.zstd"
gh release upload --clobber "$ACTIONS_VERSION" "$RUNNER_TEMP/perl-$PERL_VERSION-linux-x64-multi-thread.tar.zstd"
env:
GITHUB_TOKEN: ${{ github.token }}

- uses: actions/attest-build-provenance@v1
with:
subject-path: ${{ runner.temp }}/*.tar.zstd
16 changes: 8 additions & 8 deletions .github/workflows/win32.yml
Original file line number Diff line number Diff line change
Expand Up @@ -160,10 +160,6 @@ jobs:
shell: bash
working-directory: ${{ runner.temp }}/perl-wer
- uses: actions/attest-build-provenance@v1
with:
subject-path: ${{ runner.temp }}/perl.zip

- name: upload
shell: bash
run: |
Expand All @@ -175,6 +171,10 @@ jobs:
PERL_VERSION: ${{ matrix.perl }}
GITHUB_TOKEN: ${{ github.token }}

- uses: actions/attest-build-provenance@v1
with:
subject-path: ${{ runner.temp }}/*.zip

build-multi-thread:
runs-on: windows-2022
needs:
Expand Down Expand Up @@ -259,10 +259,6 @@ jobs:
shell: bash
working-directory: ${{ runner.temp }}/perl-wer
- uses: actions/attest-build-provenance@v1
with:
subject-path: ${{ runner.temp }}/perl.zip

- name: upload
shell: bash
run: |
Expand All @@ -273,3 +269,7 @@ jobs:
env:
PERL_VERSION: ${{ matrix.perl }}
GITHUB_TOKEN: ${{ github.token }}

- uses: actions/attest-build-provenance@v1
with:
subject-path: ${{ runner.temp }}/*.zip

0 comments on commit 522a126

Please sign in to comment.