@@ -2,69 +2,72 @@ name: Build dotnet dev
22# trigger via either push to selected branches or on manual run
33on :
44 push :
5- branches :
6- - debug
75 workflow_dispatch :
8-
6+ schedule :
7+ # Every day at 1am
8+ - cron : ' 0 1 * * *'
99concurrency :
10- group : ${{ github.ref }}-dev
10+ group : ${{ github.ref }}-dotnet- dev
1111 cancel-in-progress : true
1212
1313jobs :
1414# ============================================
15- # ============== .NET 6 .0 BUILD =============
15+ # ============== .NET 8 .0 BUILD =============
1616# ===========================================
17- build-dotnet6 :
17+ build-dotnet8 :
1818 runs-on : ubuntu-latest
1919
2020 steps :
2121 - uses : actions/checkout@v4
2222 - name : Setup .NET
2323 uses : actions/setup-dotnet@v4
2424 with :
25- dotnet-version : 6 .0.x
25+ dotnet-version : 8 .0.x
2626 - name : Restore dependencies
27- run : dotnet restore CLI/FlamesCLI_dotnet6_dev .csproj
27+ run : dotnet restore CLI/FlamesCLI_dotnet8_dev .csproj
2828 - name : Build
2929 id : compile
3030 run : |
31- dotnet build CLI/FlamesCLI_dotnet6_dev .csproj --no-restore
31+ dotnet build CLI/FlamesCLI_dotnet8_dev .csproj --no-restore
3232
3333 - uses : ./.github/actions/notify_failure_harmony
3434 if : ${{ always() && steps.compile.outcome == 'failure' }}
3535 with :
36- NOTIFY_MESSAGE : ' Failed to compile Flames dotnet dev build!'
36+ NOTIFY_MESSAGE : ' Failed to compile Flames dotnet dev build! <@999409543001931788> '
3737 WEBHOOK_URL : ' ${{ secrets.WEBHOOK_URL }}'
3838
3939 - uses : ./.github/actions/notify_success_harmony
4040 if : ${{ always() && steps.compile.outcome == 'success' }}
4141 with :
42- SOURCE_FILE : ' CLI/bin/Debug/net6 .0'
43- DEST_NAME : ' Flames-net6 .0'
42+ SOURCE_FILE : ' CLI/bin/Debug/net8 .0'
43+ DEST_NAME : ' Harmony-net8 .0'
4444 NOTIFY_MESSAGE : ' Successfully compiled Flames dotnet dev build.'
4545 WEBHOOK_URL : ' ${{ secrets.WEBHOOK_URL }}'
46+ DELETE_AFTER : ' 1'
4647
4748 # publish standalone windows binaries
4849 - name : Publish-win64
49- run : dotnet publish CLI/FlamesCLI_standalone6_dev .csproj -r win-x64 --self-contained
50+ run : dotnet publish CLI/FlamesCLI_standalone8_dev .csproj -r win-x64 --self-contained
5051
5152 - uses : ./.github/actions/notify_success_harmony
5253 if : ${{ always() && steps.compile.outcome == 'success' }}
5354 with :
54- SOURCE_FILE : ' CLI/bin/Debug/net6 .0/win-x64/publish'
55- DEST_NAME : ' Flames -win64-standalone'
55+ SOURCE_FILE : ' CLI/bin/Debug/net8 .0/win-x64/publish'
56+ DEST_NAME : ' Harmony -win64-standalone'
5657 NOTIFY_MESSAGE : ' Successfully compiled Flames Windows 64-bit standalone dev build.'
5758 WEBHOOK_URL : ' ${{ secrets.WEBHOOK_URL }}'
59+ DELETE_AFTER : ' 1'
5860
5961
6062 # publish standalone linux binaries
6163 - name : Publish-linux64
62- run : dotnet publish CLI/FlamesCLI_standalone6_dev .csproj -r linux-x64 --self-contained
63-
64+ run : dotnet publish CLI/FlamesCLI_standalone8_dev .csproj -r linux-x64 --self-contained
65+
6466 - uses : ./.github/actions/notify_success_harmony
6567 if : ${{ always() && steps.compile.outcome == 'success' }}
6668 with :
67- SOURCE_FILE : ' CLI/bin/Debug/net6 .0/linux-x64/publish'
68- DEST_NAME : ' Flames -linux64-standalone'
69+ SOURCE_FILE : ' CLI/bin/Debug/net8 .0/linux-x64/publish'
70+ DEST_NAME : ' Harmony -linux64-standalone'
6971 NOTIFY_MESSAGE : ' Successfully compiled Flames Linux 64-bit standalone dev build.'
7072 WEBHOOK_URL : ' ${{ secrets.WEBHOOK_URL }}'
73+ DELETE_AFTER : ' 1'
0 commit comments