67
67
with :
68
68
ref : " refs/pull/${{ inputs.pull_request_number }}/merge"
69
69
70
- - name : Build ReleaseNotes
70
+ - name : Build ReleaseNotes # Name checked in rerunFlakyTests.js
71
71
run : dotnet publish -c Release -p:TGS_HOST_NO_WEBPANEL=true -o release_notes_bins tools/Tgstation.Server.ReleaseNotes/Tgstation.Server.ReleaseNotes.csproj
72
72
73
73
- name : Store ReleaseNotes Binaries
@@ -108,7 +108,7 @@ jobs:
108
108
- name : Setup Telemetry Key File
109
109
run : echo "fake_telemetry_key" > ${{ env.TGS_TELEMETRY_KEY_FILE }}
110
110
111
- - name : Build
111
+ - name : Build # Name checked in rerunFlakyTests.js
112
112
run : dotnet build -c ReleaseNoWindows -p:TGS_HOST_NO_WEBPANEL=true
113
113
114
114
- name : Perform CodeQL Analysis
@@ -124,7 +124,7 @@ jobs:
124
124
byond : [ '510.1346', '511.1385', '512.1488', '513.1542', '514.1589', 'EDGE' ]
125
125
runs-on : ubuntu-latest
126
126
steps :
127
- - name : Install x86 libc Dependencies
127
+ - name : Install Native x86 libc Dependencies # Name checked in rerunFlakyTests.js
128
128
run : |
129
129
sudo dpkg --add-architecture i386
130
130
sudo apt-get update
@@ -137,7 +137,7 @@ jobs:
137
137
path : ~/byond-zips-cache
138
138
key : byond-zips
139
139
140
- - name : Build BYOND Cache if Necessary and Install
140
+ - name : Setup BYOND Cache if Necessary and Install
141
141
run : |
142
142
echo "Setting up BYOND."
143
143
FULL_VERSION=${{ matrix.byond }}
@@ -184,7 +184,7 @@ jobs:
184
184
run : echo "head_sha=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT
185
185
186
186
187
- - name : Build DMAPI Test Project
187
+ - name : Compile DMAPI Test Project
188
188
run : |
189
189
set -e
190
190
retval=1
@@ -244,17 +244,17 @@ jobs:
244
244
git checkout ${{ matrix.committish }}
245
245
git submodule update --init --recursive
246
246
247
- - name : Build OpenDream
247
+ - name : Build OpenDream # Name checked in rerunFlakyTests.js
248
248
run : |
249
249
cd $HOME/OpenDream/OpenDreamPackageTool
250
250
dotnet build -c Release --nologo -v q --property WarningLevel=0 /clp:ErrorsOnly
251
251
252
- - name : Create TGS Deployment
252
+ - name : Build TGS Deployment # Name checked in rerunFlakyTests.js
253
253
run : |
254
254
cd $HOME/OpenDream
255
255
dotnet run -c Release --project OpenDreamPackageTool --no-build -- --tgs -o tgs_deploy
256
256
257
- - name : Build DMAPI
257
+ - name : Compile DMAPI Test Project
258
258
run : |
259
259
cd tests/DMAPI/BasicOperation
260
260
$HOME/OpenDream/tgs_deploy/bin/compiler/DMCompiler --verbose --notices-enabled "basic operation_test.dme"
@@ -345,7 +345,7 @@ jobs:
345
345
name : release_notes_bins
346
346
path : release_notes_bins
347
347
348
- - name : Build Changelog (Incremental)
348
+ - name : Compile Changelog (Incremental)
349
349
run : |
350
350
mv $HOME/tgsdox/changelog.yml ./ 2>/dev/null
351
351
dotnet release_notes_bins/Tgstation.Server.ReleaseNotes.dll --generate-full-notes
@@ -410,7 +410,7 @@ jobs:
410
410
shell : bash
411
411
run : echo "${{ secrets.TGS_TELEMETRY_KEY }}" > ${{ env.TGS_TELEMETRY_KEY_FILE }}
412
412
413
- - name : Build Docker Image
413
+ - name : Build Docker Image # Name checked in rerunFlakyTests.js
414
414
run : docker build . -f build/Dockerfile --build-arg TGS_TELEMETRY_KEY_FILE=${{ env.TGS_TELEMETRY_KEY_FILE }}
415
415
416
416
- name : Delete Telemetry Key File
@@ -429,7 +429,7 @@ jobs:
429
429
TGS_TELEMETRY_KEY_FILE : /tmp/tgs_telemetry_key.txt
430
430
runs-on : ubuntu-latest
431
431
steps :
432
- - name : Install x86 libc Dependencies
432
+ - name : Install Native x86 libc Dependencies # Name checked in rerunFlakyTests.js
433
433
run : |
434
434
sudo dpkg --add-architecture i386
435
435
sudo apt-get update
@@ -462,7 +462,7 @@ jobs:
462
462
- name : Setup Telemetry Key File
463
463
run : echo "${{ secrets.TGS_TELEMETRY_KEY }}" > ${{ env.TGS_TELEMETRY_KEY_FILE }}
464
464
465
- - name : Build
465
+ - name : Build # Name checked in rerunFlakyTests.js
466
466
run : dotnet build -c ${{ matrix.configuration }}NoWindows
467
467
468
468
- name : Delete Telemetry Key File
@@ -525,7 +525,7 @@ jobs:
525
525
shell : bash
526
526
run : echo "${{ secrets.TGS_TELEMETRY_KEY }}" > ${{ env.TGS_TELEMETRY_KEY_FILE }}
527
527
528
- - name : Build
528
+ - name : Build # Name checked in rerunFlakyTests.js
529
529
run : dotnet build -c ${{ matrix.configuration }}NoWix
530
530
531
531
- name : Delete Telemetry Key File
@@ -656,7 +656,7 @@ jobs:
656
656
shell : bash
657
657
run : echo "${{ secrets.TGS_TELEMETRY_KEY }}" > ${{ env.TGS_TELEMETRY_KEY_FILE }}
658
658
659
- - name : Build
659
+ - name : Build # Name checked in rerunFlakyTests.js
660
660
run : dotnet build -c ${{ matrix.configuration }} tests/Tgstation.Server.Tests/Tgstation.Server.Tests.csproj
661
661
662
662
- name : Delete Telemetry Key File
@@ -820,7 +820,7 @@ jobs:
820
820
- name : Disable ptrace_scope
821
821
run : echo 0 | sudo tee /proc/sys/kernel/yama/ptrace_scope
822
822
823
- - name : Install Native Dependencies
823
+ - name : Install Native Dependencies # Name checked in rerunFlakyTests.js
824
824
run : |
825
825
sudo dpkg --add-architecture i386
826
826
sudo apt-get update
@@ -876,7 +876,7 @@ jobs:
876
876
- name : Setup Telemetry Key File
877
877
run : echo "${{ secrets.TGS_TELEMETRY_KEY }}" > ${{ env.TGS_TELEMETRY_KEY_FILE }}
878
878
879
- - name : Build
879
+ - name : Build # Name checked in rerunFlakyTests.js
880
880
run : dotnet build -c ${{ matrix.configuration }}NoWindows tests/Tgstation.Server.Tests/Tgstation.Server.Tests.csproj
881
881
882
882
- name : Delete Telemetry Key File
@@ -1224,24 +1224,25 @@ jobs:
1224
1224
1225
1225
build-deb :
1226
1226
name : Build .deb Package # Can't do i386 due to https://github.com/dotnet/core/issues/4595
1227
+ needs : build-releasenotes
1227
1228
runs-on : ubuntu-latest
1228
1229
env :
1229
1230
TGS_TELEMETRY_KEY_FILE : /tmp/tgs_telemetry_key.txt
1230
1231
steps :
1231
- - name : Install Native Dependencies
1232
+ - name : Install Native Dependencies # Name checked in rerunFlakyTests.js
1232
1233
run : |
1233
1234
sudo dpkg --add-architecture i386
1234
1235
sudo apt-get update
1235
1236
sudo apt-get install -y -o APT::Immediate-Configure=0 libstdc++6:i386 libgcc-s1:i386
1236
1237
1237
1238
- name : Import GPG Key
1238
- if : ( github.event_name == 'push' && contains(github.event.head_commit.message, '[TGSDeploy]') && ( github.event.ref == 'refs/heads/master' || github.event.ref == 'refs/heads/dev'))
1239
+ if : github.event_name == 'push' && contains(github.event.head_commit.message, '[TGSDeploy]') && github.event.ref == 'refs/heads/master'
1239
1240
run : |
1240
1241
echo "${{ secrets.PACKAGING_PRIVATE_KEY }}" > private.pgp
1241
1242
echo ${{ secrets.PACKAGING_PRIVATE_KEY_PASSPHRASE }} | gpg --batch --yes --passphrase-fd 0 --import private.pgp
1242
1243
rm private.pgp
1243
1244
1244
- - name : Install dotnet-sdk system package
1245
+ - name : Install Native dotnet-sdk Package # Name checked in rerunFlakyTests.js
1245
1246
if : (!contains(env.TGS_DOTNET_QUALITY, 'preview'))
1246
1247
run : |
1247
1248
sudo apt-get update
@@ -1276,13 +1277,22 @@ jobs:
1276
1277
- name : Setup Telemetry Key File
1277
1278
run : echo "${{ secrets.TGS_TELEMETRY_KEY }}" > ${{ env.TGS_TELEMETRY_KEY_FILE }}
1278
1279
1280
+ - name : Retrieve ReleaseNotes Binaries
1281
+ uses : actions/download-artifact@v4
1282
+ with :
1283
+ name : release_notes_bins
1284
+ path : release_notes_bins
1285
+
1279
1286
- name : Execute Build Script (Unsigned)
1280
1287
if : (!(github.event_name == 'push' && contains(github.event.head_commit.message, '[TGSDeploy]') && github.event.ref == 'refs/heads/master'))
1288
+ env :
1289
+ RELEASE_NOTES_DLL_PATH : ${{ github.workspace }}/release_notes_bins/Tgstation.Server.ReleaseNotes.dll
1281
1290
run : sudo -E build/package/deb/build_package.sh
1282
1291
1283
1292
- name : Execute Build Script (Signed)
1284
1293
if : (github.event_name == 'push' && contains(github.event.head_commit.message, '[TGSDeploy]') && github.event.ref == 'refs/heads/master')
1285
1294
env :
1295
+ RELEASE_NOTES_DLL_PATH : ${{ github.workspace }}/release_notes_bins/Tgstation.Server.ReleaseNotes.dll
1286
1296
PACKAGING_KEYGRIP : ${{ vars.PACKAGING_KEYGRIP }}
1287
1297
run : sudo -E build/package/deb/build_package.sh
1288
1298
@@ -1383,22 +1393,22 @@ jobs:
1383
1393
shell : bash
1384
1394
run : echo "${{ secrets.TGS_TELEMETRY_KEY }}" > ${{ env.TGS_TELEMETRY_KEY_FILE }}
1385
1395
1386
- - name : Build Host
1396
+ - name : Build Host # Name checked in rerunFlakyTests.js
1387
1397
run : dotnet build -c Release src/Tgstation.Server.Host/Tgstation.Server.Host.csproj
1388
1398
1389
1399
- name : Delete Telemetry Key File
1390
1400
shell : bash
1391
1401
if : always()
1392
1402
run : rm -f ${{ env.TGS_TELEMETRY_KEY_FILE }}
1393
1403
1394
- - name : Build Service
1404
+ - name : Build Service # Name checked in rerunFlakyTests.js
1395
1405
run : dotnet build -c Release src/Tgstation.Server.Host.Service/Tgstation.Server.Host.Service.csproj
1396
1406
1397
1407
- name : Prepare Artifacts
1398
1408
shell : powershell
1399
1409
run : build/package/winget/prepare_installer_input_artifacts.ps1
1400
1410
1401
- - name : Build Installer .exe
1411
+ - name : Build Installer .exe # Name checked in rerunFlakyTests.js
1402
1412
run : |
1403
1413
cd build/package/winget/Tgstation.Server.Host.Service.Wix.Bundle
1404
1414
dotnet build -c Release
@@ -1789,22 +1799,23 @@ jobs:
1789
1799
shell : bash
1790
1800
run : echo "${{ secrets.TGS_TELEMETRY_KEY }}" > ${{ env.TGS_TELEMETRY_KEY_FILE }}
1791
1801
1792
- - name : Build Host # We need to rebuild the installer.exe so it can be properly signed
1802
+ # We need to rebuild the installer.exe so it can be properly signed
1803
+ - name : Build Host # Name checked in rerunFlakyTests.js
1793
1804
run : dotnet build -c Release src/Tgstation.Server.Host/Tgstation.Server.Host.csproj
1794
1805
1795
1806
- name : Delete Telemetry Key File
1796
1807
shell : bash
1797
1808
if : always()
1798
1809
run : rm -f ${{ env.TGS_TELEMETRY_KEY_FILE }}
1799
1810
1800
- - name : Build Service
1811
+ - name : Build Service # Name checked in rerunFlakyTests.js
1801
1812
run : dotnet build -c Release src/Tgstation.Server.Host.Service/Tgstation.Server.Host.Service.csproj
1802
1813
1803
1814
- name : Prepare Artifacts
1804
1815
shell : powershell
1805
1816
run : build/package/winget/prepare_installer_input_artifacts.ps1
1806
1817
1807
- - name : Build Installer .exe
1818
+ - name : Build Installer .exe # Name checked in rerunFlakyTests.js
1808
1819
run : |
1809
1820
cd build/package/winget/Tgstation.Server.Host.Service.Wix.Bundle
1810
1821
dotnet build -c Release
@@ -1995,6 +2006,7 @@ jobs:
1995
2006
changelog-regen :
1996
2007
name : Regenerate Changelog
1997
2008
runs-on : ubuntu-latest
2009
+ if : (!(cancelled() || failure())) && needs.deploy-tgs.result == 'success'
1998
2010
needs : deploy-tgs
1999
2011
steps :
2000
2012
- name : Setup dotnet
@@ -2012,7 +2024,7 @@ jobs:
2012
2024
name : release_notes_bins
2013
2025
path : release_notes_bins
2014
2026
2015
- - name : Build Changelog (Incremental)
2027
+ - name : Compile Changelog (Incremental)
2016
2028
run : |
2017
2029
mv $HOME/tgsdox/changelog.yml ./ 2>/dev/null
2018
2030
dotnet release_notes_bins/Tgstation.Server.ReleaseNotes.dll --generate-full-notes
@@ -2042,16 +2054,19 @@ jobs:
2042
2054
deploy-docker :
2043
2055
name : Deploy TGS (Docker)
2044
2056
needs : deploy-tgs
2057
+ if : (!(cancelled() || failure())) && needs.deploy-tgs.result == 'success'
2045
2058
runs-on : ubuntu-latest
2046
2059
steps :
2060
+ - name : Install Native Packages # Name checked in rerunFlakyTests.js
2061
+ run : |
2062
+ sudo apt-get update
2063
+ sudo apt-get install -y xmlstarlet
2064
+
2047
2065
- name : Checkout
2048
2066
uses : actions/checkout@v4
2049
2067
2050
2068
- name : Parse TGS version
2051
- run : |
2052
- sudo apt-get update
2053
- sudo apt-get install -y xmlstarlet
2054
- echo "TGS_VERSION=$(xmlstarlet sel -N X="http://schemas.microsoft.com/developer/msbuild/2003" --template --value-of /X:Project/X:PropertyGroup/X:TgsCoreVersion build/Version.props)" >> $GITHUB_ENV
2069
+ run : echo "TGS_VERSION=$(xmlstarlet sel -N X="http://schemas.microsoft.com/developer/msbuild/2003" --template --value-of /X:Project/X:PropertyGroup/X:TgsCoreVersion build/Version.props)" >> $GITHUB_ENV
2055
2070
2056
2071
- name : Docker Build and Push
2057
2072
uses : elgohr/Publish-Docker-Github-Action@43dc228e327224b2eda11c8883232afd5b34943b # v5
@@ -2065,16 +2080,19 @@ jobs:
2065
2080
deploy-ppa :
2066
2081
name : Deploy TGS (PPA)
2067
2082
needs : deploy-tgs
2083
+ if : (!(cancelled() || failure())) && needs.deploy-tgs.result == 'success'
2068
2084
runs-on : ubuntu-latest
2069
2085
steps :
2086
+ - name : Install Native Packages # Name checked in rerunFlakyTests.js
2087
+ run : |
2088
+ sudo apt-get update
2089
+ sudo apt-get install -y xmlstarlet
2090
+
2070
2091
- name : Checkout
2071
2092
uses : actions/checkout@v4
2072
2093
2073
2094
- name : Parse TGS version
2074
- run : |
2075
- sudo apt-get update
2076
- sudo apt-get install -y xmlstarlet
2077
- echo "TGS_VERSION=$(xmlstarlet sel -N X="http://schemas.microsoft.com/developer/msbuild/2003" --template --value-of /X:Project/X:PropertyGroup/X:TgsCoreVersion build/Version.props)" >> $GITHUB_ENV
2095
+ run : echo "TGS_VERSION=$(xmlstarlet sel -N X="http://schemas.microsoft.com/developer/msbuild/2003" --template --value-of /X:Project/X:PropertyGroup/X:TgsCoreVersion build/Version.props)" >> $GITHUB_ENV
2078
2096
2079
2097
- name : Trigger tgstation-ppa workflow
2080
2098
run : |
@@ -2083,6 +2101,7 @@ jobs:
2083
2101
deploy-winget :
2084
2102
name : Deploy TGS (winget)
2085
2103
needs : deploy-tgs
2104
+ if : (!(cancelled() || failure())) && needs.deploy-tgs.result == 'success'
2086
2105
runs-on : windows-latest
2087
2106
steps :
2088
2107
- name : Setup dotnet
0 commit comments