-
Notifications
You must be signed in to change notification settings - Fork 32
338 lines (303 loc) · 20.2 KB
/
Copy pathpull_request.yml
File metadata and controls
338 lines (303 loc) · 20.2 KB
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
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
name: Pull Request Build
on: [pull_request]
jobs:
windows:
runs-on: windows-2025
steps:
# TimeZone
- name: Set Timezone
uses: szenius/set-timezone@v2.0
with:
timezoneLinux: "Asia/Shanghai"
timezoneMacos: "Asia/Shanghai"
timezoneWindows: "China Standard Time"
# CheckOut
- name: Checkout
uses: actions/checkout@v5
with:
submodules: recursive
fetch-depth: 1
# Check Git
- name: Check Git
shell: bash
run: |
DATETIME=$(date +"%Y/%m/%d %H:%M:%S")
COMMIT_VERSION=0
COMMIT_HASH=$(git rev-parse --short HEAD)
echo $DATETIME
echo $COMMIT_VERSION
echo "GITCOMMIT=$COMMIT_VERSION" >> $GITHUB_ENV
echo "#pragma once" > ./Engine/src/version_auto.h
echo "#define GIT_VERSION $COMMIT_VERSION " >> ./Engine/src/version_auto.h
echo "#define GIT_VERSION_STR \"$COMMIT_VERSION\" " >> ./Engine/src/version_auto.h
echo "#define BUILD_DATE \"$DATETIME\" " >> ./Engine/src/version_auto.h
echo "#define COMMIT_HASH \"$COMMIT_HASH\" " >> ./Engine/src/version_auto.h
# .NET
- name: Install .NET Core
uses: actions/setup-dotnet@v5
with:
dotnet-version: 10.0.x
# MSVC
# 我也不知道为什么没屁用, 找不到msbuild
- name: Add MSBuild to PATH
uses: microsoft/setup-msbuild@v2
with:
msbuild-architecture: x64
# Prepare Build
- name: Prepare Build
shell: bash
run: |
mkdir ./build
mkdir ./build/sharp
mkdir ./build/sharp/bin
mkdir ./build/sharp/bin/win64
mkdir ./build/sharp/core
mkdir ./build/sharp/configs
mkdir ./build/sharp/gamedata
# Build Loader
- name: Build Loader
shell: cmd
run: |
:: See https://github.com/microsoft/vswhere/wiki/Find-VC
for /f "usebackq delims=*" %%i in (`vswhere -latest -property installationPath`) do (
call "%%i"\Common7\Tools\vsdevcmd.bat -arch=x64 -host_arch=x64
)
:: Loop over all environment variables and make them global.
for /f "delims== tokens=1,2" %%a in ('set') do (
echo>>"%GITHUB_ENV%" %%a=%%b
)
set CURRENT_DIR=%CD%
msbuild Loader/Loader.vcxproj /p:Configuration=Release /p:Platform=x64 /p:OutDir=%CURRENT_DIR%/build/sharp/bin/win64/ /p:IntermediateOutputPath=./obj/ /p:Optimize=2
# Build Engine
- name: Build Engine
shell: cmd
run: |
:: See https://github.com/microsoft/vswhere/wiki/Find-VC
for /f "usebackq delims=*" %%i in (`vswhere -latest -property installationPath`) do (
call "%%i"\Common7\Tools\vsdevcmd.bat -arch=x64 -host_arch=x64
)
:: Loop over all environment variables and make them global.
for /f "delims== tokens=1,2" %%a in ('set') do (
echo>>"%GITHUB_ENV%" %%a=%%b
)
set CURRENT_DIR=%CD%
msbuild Engine/ModSharp.vcxproj /p:Configuration=Release /p:Platform=x64 /p:OutDir=%CURRENT_DIR%/build/sharp/bin/ /p:IntermediateOutputPath=./obj/ /p:PreBuildEventUseInBuild=false /p:Optimize=2
# Build Sharp.Core
- name: Build Sharp.Core
shell: bash
env:
GITCOMMIT: ${{env.GITCOMMIT}}
run: dotnet publish Sharp.Core/Sharp.Core.csproj -f net10.0 -r win-x64 --no-self-contained -c Release --output ./build/sharp/core -p:VersionSuffix=${{env.GITCOMMIT}}
# Build Sharp.Extensions
- name: Build Sharp.Extensions
shell: bash
env:
GITCOMMIT: ${{env.GITCOMMIT}}
run: |
dotnet publish Sharp.Extensions/CommandManager/src/Sharp.Extensions.CommandManager.csproj -f net10.0 -r win-x64 --no-self-contained -c Release --output ./extensions/Sharp.Extensions.CommandManager -p:VersionSuffix=${{env.GITCOMMIT}}
dotnet publish Sharp.Extensions/GameEventManager/src/Sharp.Extensions.GameEventManager.csproj -f net10.0 -r win-x64 --no-self-contained -c Release --output ./extensions/Sharp.Extensions.GameEventManager -p:VersionSuffix=${{env.GITCOMMIT}}
dotnet publish Sharp.Extensions/EntityHookManager/src/Sharp.Extensions.EntityHookManager.csproj -f net10.0 -r win-x64 --no-self-contained -c Release --output ./extensions/Sharp.Extensions.EntityHookManager -p:VersionSuffix=${{env.GITCOMMIT}}
# Build Sharp.Modules
- name: Build Sharp.Modules
shell: bash
env:
GITCOMMIT: ${{env.GITCOMMIT}}
run: |
dotnet publish Sharp.Modules/AdminCommands/src/Sharp.Modules.AdminCommands.csproj -f net10.0 -r win-x64 --no-self-contained -c Release --output ./build/sharp/modules/AdminCommands -p:VersionSuffix=${{env.GITCOMMIT}}
dotnet publish Sharp.Modules/AdminCommands.SQLStorage/AdminCommands.SQLStorage/Sharp.Modules.AdminCommands.SQLStorage.csproj -f net10.0 -r win-x64 --no-self-contained -c Release --output ./build/sharp/modules/AdminCommands.SQLStorage -p:VersionSuffix=${{env.GITCOMMIT}}
dotnet publish Sharp.Modules/AdminFlatFile/src/Sharp.Modules.AdminFlatFile.csproj -f net10.0 -r win-x64 --no-self-contained -c Release --output ./build/sharp/modules/AdminFlatFile -p:VersionSuffix=${{env.GITCOMMIT}}
dotnet publish Sharp.Modules/AdminManager/src/Sharp.Modules.AdminManager.csproj -f net10.0 -r win-x64 --no-self-contained -c Release --output ./build/sharp/modules/AdminManager -p:VersionSuffix=${{env.GITCOMMIT}}
dotnet publish Sharp.Modules/ClientPreferences/src/Sharp.Modules.ClientPreferences.csproj -f net10.0 -r win-x64 --no-self-contained -c Release --output ./build/sharp/modules/ClientPreferences -p:VersionSuffix=${{env.GITCOMMIT}}
dotnet publish Sharp.Modules/CommandCenter/src/Sharp.Modules.CommandCenter.csproj -f net10.0 -r win-x64 --no-self-contained -c Release --output ./build/sharp/modules/CommandCenter -p:VersionSuffix=${{env.GITCOMMIT}}
dotnet publish Sharp.Modules/EntityEnhancements/src/Sharp.Modules.EntityEnhancements.csproj -f net10.0 -r win-x64 --no-self-contained -c Release --output ./build/sharp/modules/EntityEnhancements -p:VersionSuffix=${{env.GITCOMMIT}}
dotnet publish Sharp.Modules/LocalizerManager/src/Sharp.Modules.LocalizerManager.csproj -f net10.0 -r win-x64 --no-self-contained -c Release --output ./build/sharp/modules/LocalizerManager -p:VersionSuffix=${{env.GITCOMMIT}}
dotnet publish Sharp.Modules/InputManager/src/Sharp.Modules.InputManager.csproj -f net10.0 -r win-x64 --no-self-contained -c Release --output ./build/sharp/modules/InputManager -p:VersionSuffix=${{env.GITCOMMIT}}
dotnet publish Sharp.Modules/MenuManager/src/Sharp.Modules.MenuManager.csproj -f net10.0 -r win-x64 --no-self-contained -c Release --output ./build/sharp/modules/MenuManager -p:VersionSuffix=${{env.GITCOMMIT}}
dotnet publish Sharp.Modules/TargetingManager/src/Sharp.Modules.TargetingManager.csproj -f net10.0 -r win-x64 --no-self-contained -c Release --output ./build/sharp/modules/TargetingManager -p:VersionSuffix=${{env.GITCOMMIT}}
# Build Sharp.Modules Shared Interface
- name: Build Sharp.Modules Shared Interface
shell: bash
env:
GITCOMMIT: ${{env.GITCOMMIT}}
run: |
dotnet publish Sharp.Modules/AdminCommands/Shared/Sharp.Modules.AdminCommands.Shared.csproj -f net10.0 -r win-x64 --no-self-contained -c Release --output ./build/sharp/shared/Sharp.Modules.AdminCommands.Shared -p:VersionSuffix=${{env.GITCOMMIT}}
dotnet publish Sharp.Modules/AdminManager/Shared/Sharp.Modules.AdminManager.Shared.csproj -f net10.0 -r win-x64 --no-self-contained -c Release --output ./build/sharp/shared/Sharp.Modules.AdminManager.Shared -p:VersionSuffix=${{env.GITCOMMIT}}
dotnet publish Sharp.Modules/ClientPreferences/Shared/Sharp.Modules.ClientPreferences.Shared.csproj -f net10.0 -r win-x64 --no-self-contained -c Release --output ./build/sharp/shared/Sharp.Modules.ClientPreferences.Shared -p:VersionSuffix=${{env.GITCOMMIT}}
dotnet publish Sharp.Modules/CommandCenter/Shared/Sharp.Modules.CommandCenter.Shared.csproj -f net10.0 -r win-x64 --no-self-contained -c Release --output ./build/sharp/shared/Sharp.Modules.CommandCenter.Shared -p:VersionSuffix=${{env.GITCOMMIT}}
dotnet publish Sharp.Modules/LocalizerManager/Shared/Sharp.Modules.LocalizerManager.Shared.csproj -f net10.0 -r win-x64 --no-self-contained -c Release --output ./build/sharp/shared/Sharp.Modules.LocalizerManager.Shared -p:VersionSuffix=${{env.GITCOMMIT}}
dotnet publish Sharp.Modules/InputManager/Shared/Sharp.Modules.InputManager.Shared.csproj -f net10.0 -r win-x64 --no-self-contained -c Release --output ./build/sharp/shared/Sharp.Modules.InputManager.Shared -p:VersionSuffix=${{env.GITCOMMIT}}
dotnet publish Sharp.Modules/MenuManager/Shared/Sharp.Modules.MenuManager.Shared.csproj -f net10.0 -r win-x64 --no-self-contained -c Release --output ./build/sharp/shared/Sharp.Modules.MenuManager.Shared -p:VersionSuffix=${{env.GITCOMMIT}}
dotnet publish Sharp.Modules/TargetingManager/Shared/Sharp.Modules.TargetingManager.Shared.csproj -f net10.0 -r win-x64 --no-self-contained -c Release --output ./build/sharp/shared/Sharp.Modules.TargetingManager.Shared -p:VersionSuffix=${{env.GITCOMMIT}}
# Copy Assets
- name: Copy Assets
shell: bash
run: |
cp -r ./.asset/*/ ./build/sharp
touch ./build/sharp/modules/AdminCommands.SQLStorage/.disabled
# Upload ModSharp artifact
- name: Upload ModSharp artifact
uses: actions/upload-artifact@v6
with:
name: ModSharp-pr#${{ github.event.number }}-windows
path: ./build
if-no-files-found: error
retention-days: 3
# Upload Extensions artifact
- name: Upload Extensions artifact
uses: actions/upload-artifact@v6
with:
name: ModSharp-pr#${{ github.event.number }}-windows-extensions
path: ./extensions
if-no-files-found: error
retention-days: 3
linux:
runs-on: ubuntu-latest
container:
image: registry.gitlab.steamos.cloud/steamrt/sniper/sdk:latest
env:
CC: clang-21
CXX: clang++-21
steps:
- name: Install Clang 21
run: |
apt update
apt install -y wget gnupg
wget -qO- https://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add -
echo "deb http://apt.llvm.org/bullseye/ llvm-toolchain-bullseye-21 main" >> /etc/apt/sources.list
echo "deb-src http://apt.llvm.org/bullseye/ llvm-toolchain-bullseye-21 main" >> /etc/apt/sources.list
apt update
apt install -y clang-21
echo "CPLUS_INCLUDE_PATH=/usr/lib/gcc-14/x86_64-linux-gnu/include/c++/14:/usr/lib/gcc-14/x86_64-linux-gnu/include/c++/14/x86_64-linux-gnu:/usr/lib/gcc-14/x86_64-linux-gnu/include/c++/14/backward" >> $GITHUB_ENV
echo "LIBRARY_PATH=/usr/lib/gcc-14/lib/gcc/x86_64-linux-gnu/14" >> $GITHUB_ENV
echo "LD_LIBRARY_PATH=/usr/lib/gcc-14/lib/gcc/x86_64-linux-gnu/14" >> $GITHUB_ENV
# TimeZone
- name: Set Timezone
uses: szenius/set-timezone@v2.0
with:
timezoneLinux: "Asia/Shanghai"
timezoneMacos: "Asia/Shanghai"
timezoneWindows: "China Standard Time"
# SteamRT3 capabilities
- name: Mark repository as safe
run: git config --global --add safe.directory $GITHUB_WORKSPACE
# CheckOut
- name: Checkout
uses: actions/checkout@v5
with:
submodules: recursive
fetch-depth: 1
# Check Git
- name: Check Git
shell: bash
run: |
DATETIME=$(date +"%Y/%m/%d %H:%M:%S")
COMMIT_VERSION=0
COMMIT_HASH=$(git rev-parse --short HEAD)
echo $DATETIME
echo $COMMIT_VERSION
echo "GITCOMMIT=$COMMIT_VERSION" >> $GITHUB_ENV
echo "#pragma once" > ./Engine/src/version_auto.h
echo "#define GIT_VERSION $COMMIT_VERSION " >> ./Engine/src/version_auto.h
echo "#define GIT_VERSION_STR \"$COMMIT_VERSION\" " >> ./Engine/src/version_auto.h
echo "#define BUILD_DATE \"$DATETIME\" " >> ./Engine/src/version_auto.h
echo "#define COMMIT_HASH \"$COMMIT_HASH\" " >> ./Engine/src/version_auto.h
# .NET
- name: Install .NET Core
uses: actions/setup-dotnet@v5
with:
dotnet-version: 10.x
# Prepare Build
- name: Prepare Build
shell: bash
run: |
mkdir ./build
mkdir ./build/sharp
mkdir ./build/sharp/bin
mkdir ./build/sharp/bin/linuxsteamrt64
mkdir ./build/sharp/core
mkdir ./build/sharp/configs
mkdir ./build/sharp/gamedata
# Build Loader
- name: Build Loader
working-directory: Loader
run: |
cmake -P cmkr.cmake
cmake -B build -DCMAKE_BUILD_TYPE=Release
cmake --build build -- -j$(nproc)
# Build Engine
- name: Build Engine
working-directory: Engine
run: |
cmake -P cmkr.cmake
cmake -B build -DCMAKE_BUILD_TYPE=Release
cmake --build build -- -j$(nproc)
# Build Sharp.Core
- name: Build Sharp.Core
shell: bash
env:
GITCOMMIT: ${{env.GITCOMMIT}}
run: dotnet publish Sharp.Core/Sharp.Core.csproj -f net10.0 -r linux-x64 --no-self-contained -c Release --output ./build/sharp/core -p:VersionSuffix=${{env.GITCOMMIT}}
# Build Sharp.Extensions
- name: Build Sharp.Extensions
shell: bash
env:
GITCOMMIT: ${{env.GITCOMMIT}}
run: |
dotnet publish Sharp.Extensions/CommandManager/src/Sharp.Extensions.CommandManager.csproj -f net10.0 -r linux-x64 --no-self-contained -c Release --output ./extensions/Sharp.Extensions.CommandManager -p:VersionSuffix=${{env.GITCOMMIT}}
dotnet publish Sharp.Extensions/GameEventManager/src/Sharp.Extensions.GameEventManager.csproj -f net10.0 -r linux-x64 --no-self-contained -c Release --output ./extensions/Sharp.Extensions.GameEventManager -p:VersionSuffix=${{env.GITCOMMIT}}
dotnet publish Sharp.Extensions/EntityHookManager/src/Sharp.Extensions.EntityHookManager.csproj -f net10.0 -r linux-x64 --no-self-contained -c Release --output ./extensions/Sharp.Extensions.EntityHookManager -p:VersionSuffix=${{env.GITCOMMIT}}
# Build Sharp.Modules
- name: Build Sharp.Modules
shell: bash
env:
GITCOMMIT: ${{env.GITCOMMIT}}
run: |
dotnet publish Sharp.Modules/AdminCommands/src/Sharp.Modules.AdminCommands.csproj -f net10.0 -r linux-x64 --no-self-contained -c Release --output ./build/sharp/modules/AdminCommands -p:VersionSuffix=${{env.GITCOMMIT}}
dotnet publish Sharp.Modules/AdminCommands.SQLStorage/AdminCommands.SQLStorage/Sharp.Modules.AdminCommands.SQLStorage.csproj -f net10.0 -r linux-x64 --no-self-contained -c Release --output ./build/sharp/modules/AdminCommands.SQLStorage -p:VersionSuffix=${{env.GITCOMMIT}}
dotnet publish Sharp.Modules/AdminFlatFile/src/Sharp.Modules.AdminFlatFile.csproj -f net10.0 -r linux-x64 --no-self-contained -c Release --output ./build/sharp/modules/AdminFlatFile -p:VersionSuffix=${{env.GITCOMMIT}}
dotnet publish Sharp.Modules/AdminManager/src/Sharp.Modules.AdminManager.csproj -f net10.0 -r linux-x64 --no-self-contained -c Release --output ./build/sharp/modules/AdminManager -p:VersionSuffix=${{env.GITCOMMIT}}
dotnet publish Sharp.Modules/ClientPreferences/src/Sharp.Modules.ClientPreferences.csproj -f net10.0 -r linux-x64 --no-self-contained -c Release --output ./build/sharp/modules/ClientPreferences -p:VersionSuffix=${{env.GITCOMMIT}}
dotnet publish Sharp.Modules/CommandCenter/src/Sharp.Modules.CommandCenter.csproj -f net10.0 -r linux-x64 --no-self-contained -c Release --output ./build/sharp/modules/CommandCenter -p:VersionSuffix=${{env.GITCOMMIT}}
dotnet publish Sharp.Modules/EntityEnhancements/src/Sharp.Modules.EntityEnhancements.csproj -f net10.0 -r linux-x64 --no-self-contained -c Release --output ./build/sharp/modules/EntityEnhancements -p:VersionSuffix=${{env.GITCOMMIT}}
dotnet publish Sharp.Modules/LocalizerManager/src/Sharp.Modules.LocalizerManager.csproj -f net10.0 -r linux-x64 --no-self-contained -c Release --output ./build/sharp/modules/LocalizerManager -p:VersionSuffix=${{env.GITCOMMIT}}
dotnet publish Sharp.Modules/InputManager/src/Sharp.Modules.InputManager.csproj -f net10.0 -r linux-x64 --no-self-contained -c Release --output ./build/sharp/modules/InputManager -p:VersionSuffix=${{env.GITCOMMIT}}
dotnet publish Sharp.Modules/MenuManager/src/Sharp.Modules.MenuManager.csproj -f net10.0 -r linux-x64 --no-self-contained -c Release --output ./build/sharp/modules/MenuManager -p:VersionSuffix=${{env.GITCOMMIT}}
dotnet publish Sharp.Modules/TargetingManager/src/Sharp.Modules.TargetingManager.csproj -f net10.0 -r linux-x64 --no-self-contained -c Release --output ./build/sharp/modules/TargetingManager -p:VersionSuffix=${{env.GITCOMMIT}}
# Build Sharp.Modules Shared Interface
- name: Build Sharp.Modules Shared Interface
shell: bash
env:
GITCOMMIT: ${{env.GITCOMMIT}}
run: |
dotnet publish Sharp.Modules/AdminCommands/Shared/Sharp.Modules.AdminCommands.Shared.csproj -f net10.0 -r linux-x64 --no-self-contained -c Release --output ./build/sharp/shared/Sharp.Modules.AdminCommands.Shared -p:VersionSuffix=${{env.GITCOMMIT}}
dotnet publish Sharp.Modules/AdminManager/Shared/Sharp.Modules.AdminManager.Shared.csproj -f net10.0 -r linux-x64 --no-self-contained -c Release --output ./build/sharp/shared/Sharp.Modules.AdminManager.Shared -p:VersionSuffix=${{env.GITCOMMIT}}
dotnet publish Sharp.Modules/ClientPreferences/Shared/Sharp.Modules.ClientPreferences.Shared.csproj -f net10.0 -r linux-x64 --no-self-contained -c Release --output ./build/sharp/shared/Sharp.Modules.ClientPreferences.Shared -p:VersionSuffix=${{env.GITCOMMIT}}
dotnet publish Sharp.Modules/CommandCenter/Shared/Sharp.Modules.CommandCenter.Shared.csproj -f net10.0 -r linux-x64 --no-self-contained -c Release --output ./build/sharp/shared/Sharp.Modules.CommandCenter.Shared -p:VersionSuffix=${{env.GITCOMMIT}}
dotnet publish Sharp.Modules/LocalizerManager/Shared/Sharp.Modules.LocalizerManager.Shared.csproj -f net10.0 -r linux-x64 --no-self-contained -c Release --output ./build/sharp/shared/Sharp.Modules.LocalizerManager.Shared -p:VersionSuffix=${{env.GITCOMMIT}}
dotnet publish Sharp.Modules/InputManager/Shared/Sharp.Modules.InputManager.Shared.csproj -f net10.0 -r linux-x64 --no-self-contained -c Release --output ./build/sharp/shared/Sharp.Modules.InputManager.Shared -p:VersionSuffix=${{env.GITCOMMIT}}
dotnet publish Sharp.Modules/MenuManager/Shared/Sharp.Modules.MenuManager.Shared.csproj -f net10.0 -r linux-x64 --no-self-contained -c Release --output ./build/sharp/shared/Sharp.Modules.MenuManager.Shared -p:VersionSuffix=${{env.GITCOMMIT}}
dotnet publish Sharp.Modules/TargetingManager/Shared/Sharp.Modules.TargetingManager.Shared.csproj -f net10.0 -r linux-x64 --no-self-contained -c Release --output ./build/sharp/shared/Sharp.Modules.TargetingManager.Shared -p:VersionSuffix=${{env.GITCOMMIT}}
# Copy Assets
- name: Copy Assets
shell: bash
run: |
cp -r ./.asset/*/ ./build/sharp
cp -r ./Engine/build/libmodsharp.so ./build/sharp/bin/libmodsharp.so
cp -r ./Loader/build/libserver.so ./build/sharp/bin/linuxsteamrt64/libserver.so
touch ./build/sharp/modules/AdminCommands.SQLStorage/.disabled
# Upload ModSharp artifact
- name: Upload ModSharp artifact
uses: actions/upload-artifact@v6
with:
name: ModSharp-pr#${{ github.event.number }}-linux
path: ./build
if-no-files-found: error
retention-days: 3
# Upload Extensions artifact
- name: Upload Extensions artifact
uses: actions/upload-artifact@v6
with:
name: ModSharp-pr#${{ github.event.number }}-linux-extensions
path: ./extensions
if-no-files-found: error
retention-days: 3