Skip to content

Commit 03972ee

Browse files
committed
(build) add actions/attest-build-provenance
1 parent dba9244 commit 03972ee

File tree

13 files changed

+110
-52
lines changed

13 files changed

+110
-52
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: 'Artifacts attestation'
2+
description: 'Artifacts attestation'
3+
4+
runs:
5+
using: 'composite'
6+
steps:
7+
-
8+
name: 'Attestation'
9+
uses: actions/attest-build-provenance@v1
10+
with:
11+
subject-path: |
12+
${{ github.workspace }}/artifacts/packages/native
13+
${{ github.workspace }}/artifacts/packages/nuget

.github/actions/artifacts-restore/action.yml

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,26 @@ runs:
55
using: 'composite'
66
steps:
77
-
8-
name: Use cached cake frosting
9-
id: cache-cake
10-
uses: actions/cache@v4
8+
uses: actions/download-artifact@v4
9+
name: Download native linux packages
1110
with:
12-
path: run
13-
key: run-${{ runner.os }}-${{ hashFiles('./build/**') }}
11+
name: native-Linux
12+
path: ${{ github.workspace }}/artifacts/packages/native
1413
-
15-
name: Use cached tools
16-
id: cache-tools
17-
uses: actions/cache@v4
14+
uses: actions/download-artifact@v4
15+
name: Download native windows packages
1816
with:
19-
path: tools
20-
key: tools-${{ runner.os }}-${{ hashFiles('./build/**') }}
17+
name: native-Windows
18+
path: ${{ github.workspace }}/artifacts/packages/native
2119
-
22-
name: Setup .NET SDK
23-
uses: actions/setup-dotnet@v4
20+
uses: actions/download-artifact@v4
21+
name: Download native macos packages
2422
with:
25-
global-json-file: global.json
23+
name: native-macOS
24+
path: ${{ github.workspace }}/artifacts/packages/native
25+
-
26+
uses: actions/download-artifact@v4
27+
name: Download nuget packages
28+
with:
29+
name: nuget
30+
path: ${{ github.workspace }}/artifacts/packages/nuget
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: 'Cache restore'
2+
description: 'Cache restore'
3+
4+
runs:
5+
using: 'composite'
6+
steps:
7+
-
8+
name: Use cached cake frosting
9+
id: cache-cake
10+
uses: actions/cache@v4
11+
with:
12+
path: run
13+
key: run-${{ runner.os }}-${{ hashFiles('./build/**') }}
14+
-
15+
name: Use cached tools
16+
id: cache-tools
17+
uses: actions/cache@v4
18+
with:
19+
path: tools
20+
key: tools-${{ runner.os }}-${{ hashFiles('./build/**') }}
21+
-
22+
name: Setup .NET SDK
23+
uses: actions/setup-dotnet@v4
24+
with:
25+
global-json-file: global.json

.github/workflows/_artifacts_linux.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
fetch-depth: 0
3838
-
3939
name: Restore State
40-
uses: ./.github/actions/artifacts-restore
40+
uses: ./.github/actions/cache-restore
4141
-
4242
uses: actions/download-artifact@v4
4343
name: Download nuget packages
@@ -48,7 +48,7 @@ jobs:
4848
uses: actions/download-artifact@v4
4949
name: Download native packages
5050
with:
51-
name: native-${{ runner.os }}
51+
name: native-Linux
5252
path: ${{ github.workspace }}/artifacts/packages/native
5353
-
5454
name: '[Test Artifacts]'

.github/workflows/_artifacts_windows.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
fetch-depth: 0
2323
-
2424
name: Restore State
25-
uses: ./.github/actions/artifacts-restore
25+
uses: ./.github/actions/cache-restore
2626
-
2727
uses: actions/download-artifact@v4
2828
name: Download nuget packages

.github/workflows/_build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
fetch-depth: 0
2323
-
2424
name: Restore State
25-
uses: ./.github/actions/artifacts-restore
25+
uses: ./.github/actions/cache-restore
2626
-
2727
name: '[Build]'
2828
shell: pwsh

.github/workflows/_docker.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
fetch-depth: 0
3838
-
3939
name: Restore State
40-
uses: ./.github/actions/artifacts-restore
40+
uses: ./.github/actions/cache-restore
4141
-
4242
uses: actions/download-artifact@v4
4343
name: Download nuget packages

.github/workflows/_docker_manifests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
fetch-depth: 0
3131
-
3232
name: Restore State
33-
uses: ./.github/actions/artifacts-restore
33+
uses: ./.github/actions/cache-restore
3434
-
3535
name: Set up Docker
3636
uses: crazy-max/ghaction-setup-docker@v3

.github/workflows/_publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
fetch-depth: 0
2727
-
2828
name: Restore State
29-
uses: ./.github/actions/artifacts-restore
29+
uses: ./.github/actions/cache-restore
3030
-
3131
uses: actions/download-artifact@v4
3232
name: Download nuget packages
@@ -36,4 +36,4 @@ jobs:
3636
-
3737
name: '[Publish]'
3838
shell: pwsh
39-
run: dotnet run/publish.dll --target=Publish${{ matrix.taskName }}
39+
run: dotnet run/publish.dll --target=Publish${{ matrix.taskName }}

.github/workflows/_unit_tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
fetch-depth: 0
2626
-
2727
name: Restore State
28-
uses: ./.github/actions/artifacts-restore
28+
uses: ./.github/actions/cache-restore
2929
-
3030
name: '[Unit Test]'
3131
shell: pwsh

0 commit comments

Comments
 (0)