-
Notifications
You must be signed in to change notification settings - Fork 6
202 lines (173 loc) · 7.29 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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
---
name: Build
on:
release:
types:
- published
push:
branches-ignore:
- 'gh-pages'
workflow_dispatch:
jobs:
build-artifacts:
name: Build artifacts
runs-on: windows-2022
steps:
- name: Checkout repo
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Print environment
run: |
dotnet --info
echo "GitHub ref: $Env:GITHUB_REF"
echo "GitHub ref name: $Env:GITHUB_REF_NAME"
echo "GitHub event: $Env:GITHUB_EVENT_NAME"
- name: Restore/Clean service
run: |
echo "Restore"
dotnet restore
echo "Clean"
dotnet clean -c "Release"
- name: Publish service (self contained)
shell: pwsh
run: |
./build.ps1 -task binary-sc -os win -ref $Env:GITHUB_REF_NAME -event $Env:GITHUB_EVENT_NAME
./build.ps1 -task binary-sc -os lin -ref $Env:GITHUB_REF_NAME -event $Env:GITHUB_EVENT_NAME
./build.ps1 -task binary-sc -os mac -ref $Env:GITHUB_REF_NAME -event $Env:GITHUB_EVENT_NAME
- name: Publish service (framework dependent)
shell: pwsh
run: |
./build.ps1 -task binary-fd -os win -ref $Env:GITHUB_REF_NAME -event $Env:GITHUB_EVENT_NAME
./build.ps1 -task binary-fd -os lin -ref $Env:GITHUB_REF_NAME -event $Env:GITHUB_EVENT_NAME
./build.ps1 -task binary-fd -os mac -ref $Env:GITHUB_REF_NAME -event $Env:GITHUB_EVENT_NAME
- name: Upload Self Contained artifacts (win-x64)
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3
with:
name: hbs_win-x64
path: build/sc/win-x64
if-no-files-found: error
- name: Upload Self Contained artifacts (win-x86)
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3
with:
name: hbs_win-x86
path: build/sc/win-x86
if-no-files-found: error
- name: Upload Self Contained artifacts (linux-x64)
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3
with:
name: hbs_linux-x64
path: build/sc/linux-x64
if-no-files-found: error
- name: Upload Self Contained artifacts (linux-arm64)
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3
with:
name: hbs_linux-arm64
path: build/sc/linux-arm64
if-no-files-found: error
- name: Upload Self Contained artifacts (linux-armv7)
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3
with:
name: hbs_linux-armv7
path: build/sc/linux-arm
if-no-files-found: error
- name: Upload Self Contained artifacts (alpine-x64)
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3
with:
name: hbs_alpine-x64
path: build/sc/linux-musl-x64
if-no-files-found: error
- name: Upload Self Contained artifacts (alpine-armv7)
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3
with:
name: hbs_alpine-armv7
path: build/sc/linux-musl-arm
if-no-files-found: error
- name: Upload Self Contained artifacts (alpine-arm64)
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3
with:
name: hbs_alpine-arm64
path: build/sc/linux-musl-arm64
if-no-files-found: error
- name: Upload Self Contained artifacts (osx-x64)
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3
with:
name: hbs_osx-x64
path: build/sc/osx-x64
if-no-files-found: error
- name: Upload Self Contained artifacts (osx.12-arm64)
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3
with:
name: hbs_osx.12-arm64
path: build/sc/osx.12-arm64
if-no-files-found: error
- name: Upload Self Contained artifacts (osx.11.0-arm64)
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3
with:
name: hbs_osx.11.0-arm64
path: build/sc/osx.11.0-arm64
if-no-files-found: error
- name: Upload Framework Dependent artifacts (win-x64)
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3
with:
name: hbs_win-x64_dotnet
path: build/fd/win-x64
if-no-files-found: error
- name: Upload Framework Dependent artifacts (win-x86)
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3
with:
name: hbs_win-x86_dotnet
path: build/fd/win-x86
if-no-files-found: error
- name: Upload Framework Dependent artifacts (linux-x64)
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3
with:
name: hbs_linux-x64_dotnet
path: build/fd/linux-x64
if-no-files-found: error
- name: Upload Framework Dependent artifacts (linux-arm64)
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3
with:
name: hbs_linux-arm64_dotnet
path: build/fd/linux-arm64
if-no-files-found: error
- name: Upload Framework Dependent artifacts (linux-armv7)
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3
with:
name: hbs_linux-armv7_dotnet
path: build/fd/linux-arm
if-no-files-found: error
- name: Upload Framework Dependent artifacts (alpine-x64)
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3
with:
name: hbs_alpine-x64_dotnet
path: build/fd/linux-musl-x64
if-no-files-found: error
- name: Upload Framework Dependent artifacts (alpine-armv7)
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3
with:
name: hbs_alpine-armv7_dotnet
path: build/fd/linux-musl-arm
if-no-files-found: error
- name: Upload Framework Dependent artifacts (alpine-arm64)
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3
with:
name: hbs_alpine-arm64_dotnet
path: build/fd/linux-musl-arm64
if-no-files-found: error
- name: Upload Framework Dependent artifacts (osx-x64)
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3
with:
name: hbs_osx-x64_dotnet
path: build/fd/osx-x64
if-no-files-found: error
- name: Upload Framework Dependent artifacts (osx.12-arm64)
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3
with:
name: hbs_osx.12-arm64_dotnet
path: build/fd/osx.12-arm64
if-no-files-found: error
- name: Upload Framework Dependent artifacts (osx.11.0-arm64)
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3
with:
name: hbs_osx.11.0-arm64_dotnet
path: build/fd/osx.11.0-arm64
if-no-files-found: error