-
Notifications
You must be signed in to change notification settings - Fork 8
102 lines (85 loc) · 2.94 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
on:
push:
paths:
- "**.cs"
- "**.csproj"
workflow_dispatch:
permissions:
id-token: write
attestations: write
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
- name: Install .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Publish the solution
run: ./src/Scripts/publish.bat
# Serein.Lite
- name: Upload binary files(Serein.Lite_win-x64)
uses: actions/upload-artifact@v4
with:
name: Serein.Lite_win-x64
path: ./src/Serein.Lite/bin/Release/net8.0-windows/win-x64/publish
# Serein.Plus
- name: Upload binary files(Serein.Plus_win-x64)
uses: actions/upload-artifact@v4
with:
name: Serein.Plus_win-x64
path: ./src/Serein.Plus/bin/Release/net8.0-windows/win-x64/publish
# Serein.Cli
- name: Upload binary files(Serein.Cli_win-x64)
uses: actions/upload-artifact@v4
with:
name: Serein.Cli_win-x64
path: ./src/Serein.Cli/bin/Release/net8.0/win-x64/publish
- name: Upload binary files(Serein.Cli_linux-x64)
uses: actions/upload-artifact@v4
with:
name: Serein.Cli_linux-x64
path: ./src/Serein.Cli/bin/Release/net8.0/linux-x64/publish
- name: Upload binary files(Serein.Cli_linux-arm)
uses: actions/upload-artifact@v4
with:
name: Serein.Cli_linux-arm
path: ./src/Serein.Cli/bin/Release/net8.0/linux-arm/publish
- name: Upload binary files(Serein.Cli_linux-arm64)
uses: actions/upload-artifact@v4
with:
name: Serein.Cli_linux-arm64
path: ./src/Serein.Cli/bin/Release/net8.0/linux-arm64/publish
- name: Upload binary files(Serein.Cli_osx-x64)
uses: actions/upload-artifact@v4
with:
name: Serein.Cli_osx-x64
path: ./src/Serein.Cli/bin/Release/net8.0/osx-x64/publish
- name: Upload binary files(Serein.Cli_osx-arm64)
uses: actions/upload-artifact@v4
with:
name: Serein.Cli_osx-arm64
path: ./src/Serein.Cli/bin/Release/net8.0/osx-arm64/publish
attest-build-provenance:
needs: [ build ]
runs-on: windows-latest
strategy:
matrix:
names: [ Serein.Lite_win-x64, Serein.Plus_win-x64, Serein.Cli_win-x64, Serein.Cli_linux-x64, Serein.Cli_linux-arm, Serein.Cli_osx-x64, Serein.Cli_osx-arm64 ]
steps:
- uses: actions/download-artifact@v4
with:
path: downloads
name: ${{ matrix.names }}
- shell: powershell
run: |
Remove-Item ./downloads/* -Exclude Serein.* -Recurse
- uses: actions/attest-build-provenance@v1
continue-on-error: true
with:
subject-path: downloads/*
subject-name: ${{ matrix.names }}