Skip to content

Commit 9e5be69

Browse files
Merge pull request #1 from SuperNova-DeadNova/debug
2 parents 6195dc1 + f6be84d commit 9e5be69

801 files changed

Lines changed: 137836 additions & 81 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/actions/notify_success/action.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@ inputs:
2727
description: 'Name to use for the uploaded artifact'
2828
required: true
2929
type: string
30+
DELETE_AFTER:
31+
description: 'Auto delete uploaded artifact after X days'
32+
required: false
33+
default: 1
34+
type: string
3035

3136
runs:
3237
using: "composite"
@@ -35,6 +40,7 @@ runs:
3540
with:
3641
name: ${{ inputs.DEST_NAME }}
3742
path: ${{ inputs.SOURCE_FILE }}
43+
retention-days: ${{ inputs.DELETE_AFTER }}
3844
- name: Notify Success
3945
shell: sh
4046
run: |

.github/actions/notify_success_harmony/action.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@ inputs:
2727
description: 'Name to use for the uploaded artifact'
2828
required: true
2929
type: string
30+
DELETE_AFTER:
31+
description: 'Auto delete uploaded artifact after X days'
32+
required: false
33+
default: 1
34+
type: string
3035

3136
runs:
3237
using: "composite"
@@ -35,6 +40,7 @@ runs:
3540
with:
3641
name: ${{ inputs.DEST_NAME }}
3742
path: ${{ inputs.SOURCE_FILE }}
43+
retention-days: ${{ inputs.DELETE_AFTER }}
3844
- name: Notify Success
3945
shell: sh
4046
run: |

.github/workflows/Dev.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ name: Build Dev
22
on:
33
push:
44
workflow_dispatch:
5+
schedule:
6+
# Every day at 1am
7+
- cron: '0 1 * * *'
58

69
concurrency:
710
group: ${{ github.ref }}-Dev
@@ -33,3 +36,4 @@ jobs:
3336
DEST_NAME: 'Harmony'
3437
NOTIFY_MESSAGE: 'Successfully compiled Flames .NET Dev build.'
3538
WEBHOOK_URL: '${{ secrets.WEBHOOK_URL }}'
39+
DELETE_AFTER: '1'

.github/workflows/Dev_TLI.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Build Dev TLI
2+
on:
3+
push:
4+
workflow_dispatch:
5+
schedule:
6+
# Every day at 1am
7+
- cron: '0 1 * * *'
8+
9+
concurrency:
10+
group: ${{ github.ref }}-Dev-TLI
11+
cancel-in-progress: true
12+
13+
jobs:
14+
build:
15+
runs-on: ubuntu-22.04
16+
steps:
17+
- uses: actions/checkout@v4
18+
- name: Compile Flames Dev TLI build using mono
19+
shell: bash
20+
id: compile
21+
run: |
22+
msbuild FlamesTLI.sln /p:Configuration=Release
23+
cp -R bin/Release bin/Release_dev_TLI
24+
rm bin/Release/FlamesTLI_.dll
25+
msbuild FlamesTLI/Flames_TLI.csproj /p:Configuration=Release /p:DefineConstants="CORE%3BFLAMES_TLI"
26+
27+
- uses: ./.github/actions/notify_failure_harmony
28+
if: ${{ always() && steps.compile.outcome == 'failure' }}
29+
with:
30+
NOTIFY_MESSAGE: 'Failed to compile Flames .NET Dev TLI build! <@999409543001931788>'
31+
WEBHOOK_URL: '${{ secrets.WEBHOOK_URL }}'
32+
33+
- uses: ./.github/actions/notify_success
34+
if: ${{ always() && steps.compile.outcome == 'success' }}
35+
with:
36+
SOURCE_FILE: 'bin/Release_dev_TLI'
37+
DEST_NAME: 'Harmony'
38+
NOTIFY_MESSAGE: 'Successfully compiled Flames .NET Dev TLI build.'
39+
WEBHOOK_URL: '${{ secrets.WEBHOOK_URL }}'
40+
DELETE_AFTER: '1'

.github/workflows/Normal.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ name: Build Normal
22
on:
33
push:
44
workflow_dispatch:
5+
schedule:
6+
# Every day at 1am
7+
- cron: '0 1 * * *'
58

69
concurrency:
710
group: ${{ github.ref }}-Normal
@@ -34,3 +37,4 @@ jobs:
3437
DEST_NAME: 'Flames'
3538
NOTIFY_MESSAGE: 'Successfully compiled Flames .NET build.'
3639
WEBHOOK_URL: '${{ secrets.WEBHOOK_URL }}'
40+
DELETE_AFTER: '1'

.github/workflows/TLI.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Build TLI
2+
on:
3+
push:
4+
workflow_dispatch:
5+
schedule:
6+
# Every day at 1am
7+
- cron: '0 1 * * *'
8+
9+
concurrency:
10+
group: ${{ github.ref }}-TLI
11+
cancel-in-progress: true
12+
13+
jobs:
14+
build:
15+
runs-on: ubuntu-22.04
16+
steps:
17+
- uses: actions/checkout@v4
18+
- name: Compile FlamesTLI using mono
19+
shell: bash
20+
id: compile
21+
run: |
22+
msbuild FlamesTLI.sln /p:Configuration=Release
23+
cp -R bin/Release bin/Release_TLI
24+
rm bin/Release/FlamesTLI_.dll
25+
msbuild FlamesTLI/Flames_TLI.csproj /p:Configuration=Release /p:DefineConstants="FLAMES_TLI"
26+
27+
- uses: ./.github/actions/notify_failure
28+
if: ${{ always() && steps.compile.outcome == 'failure' }}
29+
with:
30+
NOTIFY_MESSAGE: 'Failed to compile Flames .NET TLI build! <@999409543001931788>'
31+
WEBHOOK_URL: '${{ secrets.WEBHOOK_URL }}'
32+
33+
- uses: ./.github/actions/notify_success
34+
if: ${{ always() && steps.compile.outcome == 'success' }}
35+
with:
36+
SOURCE_FILE: 'bin/Release_TLI'
37+
DEST_NAME: 'Flames'
38+
NOTIFY_MESSAGE: 'Successfully compiled Flames .NET TLI build.'
39+
WEBHOOK_URL: '${{ secrets.WEBHOOK_URL }}'
40+
DELETE_AFTER: '1'
Lines changed: 22 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2,69 +2,72 @@ name: Build dotnet dev
22
# trigger via either push to selected branches or on manual run
33
on:
44
push:
5-
branches:
6-
- debug
75
workflow_dispatch:
8-
6+
schedule:
7+
# Every day at 1am
8+
- cron: '0 1 * * *'
99
concurrency:
10-
group: ${{ github.ref }}-dev
10+
group: ${{ github.ref }}-dotnet-dev
1111
cancel-in-progress: true
1212

1313
jobs:
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'
Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
name: Build dotnet dev TLI
2+
# trigger via either push to selected branches or on manual run
3+
on:
4+
push:
5+
workflow_dispatch:
6+
schedule:
7+
# Every day at 1am
8+
- cron: '0 1 * * *'
9+
concurrency:
10+
group: ${{ github.ref }}-dotnet-dev-TLI
11+
cancel-in-progress: true
12+
13+
jobs:
14+
#============================================
15+
# ============== .NET 8.0 BUILD =============
16+
# ===========================================
17+
build-dotnet8:
18+
runs-on: ubuntu-latest
19+
20+
steps:
21+
- uses: actions/checkout@v4
22+
- name: Setup .NET
23+
uses: actions/setup-dotnet@v4
24+
with:
25+
dotnet-version: 8.0.x
26+
- name: Restore dependencies
27+
run: dotnet restore TLI/FlamesTLI_dotnet8_dev.csproj
28+
- name: Build
29+
id: compile
30+
run: |
31+
dotnet build TLI/FlamesTLI_dotnet8_dev.csproj --no-restore
32+
33+
- uses: ./.github/actions/notify_failure_harmony
34+
if: ${{ always() && steps.compile.outcome == 'failure' }}
35+
with:
36+
NOTIFY_MESSAGE: 'Failed to compile Flames dotnet dev TLI build! <@999409543001931788>'
37+
WEBHOOK_URL: '${{ secrets.WEBHOOK_URL }}'
38+
39+
- uses: ./.github/actions/notify_success_harmony
40+
if: ${{ always() && steps.compile.outcome == 'success' }}
41+
with:
42+
SOURCE_FILE: 'TLI/bin/Debug/net8.0'
43+
DEST_NAME: 'Harmony-net8.0'
44+
NOTIFY_MESSAGE: 'Successfully compiled Flames dotnet dev TLI build.'
45+
WEBHOOK_URL: '${{ secrets.WEBHOOK_URL }}'
46+
DELETE_AFTER: '1'
47+
48+
# publish standalone windows binaries
49+
- name: Publish-win64
50+
run: dotnet publish TLI/FlamesTLI_standalone8_dev.csproj -r win-x64 --self-contained
51+
52+
- uses: ./.github/actions/notify_success_harmony
53+
if: ${{ always() && steps.compile.outcome == 'success' }}
54+
with:
55+
SOURCE_FILE: 'TLI/bin/Debug/net8.0/win-x64/publish'
56+
DEST_NAME: 'Harmony-win64-standalone'
57+
NOTIFY_MESSAGE: 'Successfully compiled Flames Windows 64-bit standalone dev TLI build.'
58+
WEBHOOK_URL: '${{ secrets.WEBHOOK_URL }}'
59+
DELETE_AFTER: '1'
60+
61+
62+
# publish standalone linux binaries
63+
- name: Publish-linux64
64+
run: dotnet publish TLI/FlamesTLI_standalone8_dev.csproj -r linux-x64 --self-contained
65+
66+
- uses: ./.github/actions/notify_success_harmony
67+
if: ${{ always() && steps.compile.outcome == 'success' }}
68+
with:
69+
SOURCE_FILE: 'TLI/bin/Debug/net8.0/linux-x64/publish'
70+
DEST_NAME: 'Harmony-linux64-standalone'
71+
NOTIFY_MESSAGE: 'Successfully compiled Flames Linux 64-bit standalone dev TLI build.'
72+
WEBHOOK_URL: '${{ secrets.WEBHOOK_URL }}'
73+
DELETE_AFTER: '1'
Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,38 @@
1-
name: Build dotnet dev2
1+
name: Build dotnet standalone dev
22
on:
33
push:
44
workflow_dispatch:
5-
5+
schedule:
6+
# Every day at 1am
7+
- cron: '0 1 * * *'
68
concurrency:
7-
group: ${{ github.ref }}-dotnet_dev
9+
group: ${{ github.ref }}-dotnet_standalone_dev
810
cancel-in-progress: true
911

1012
jobs:
1113
build:
1214
runs-on: ubuntu-22.04
1315
steps:
1416
- uses: actions/checkout@v4
15-
- name: Compile Flames dotnet Dev build using mono
17+
- name: Compile Flames dotnet standalone Dev build using mono
1618
shell: bash
1719
id: compile
1820
run: |
1921
msbuild Flames.sln /p:Configuration=Release
20-
cp -R bin/Release bin/Release_dev_dotnet
22+
cp -R bin/Release bin/Release_dev_dotnet_standalone
2123
msbuild Flames/Flames.csproj /p:Configuration=Release /p:DefineConstants="CORE%3BF_STANDALONE%3BF_DOTNET%3BF_DOTNET_DEV"
2224
2325
- uses: ./.github/actions/notify_failure_harmony
2426
if: ${{ always() && steps.compile.outcome == 'failure' }}
2527
with:
26-
NOTIFY_MESSAGE: 'Failed to compile Flames dotnet Dev build! <@999409543001931788>'
28+
NOTIFY_MESSAGE: 'Failed to compile Flames dotnet standalone Dev build! <@999409543001931788>'
2729
WEBHOOK_URL: '${{ secrets.WEBHOOK_URL }}'
2830

2931
- uses: ./.github/actions/notify_success_harmony
3032
if: ${{ always() && steps.compile.outcome == 'success' }}
3133
with:
32-
SOURCE_FILE: 'bin/Release_dev_dotnet'
34+
SOURCE_FILE: 'bin/Release_dev_dotnet_standalone'
3335
DEST_NAME: 'Harmony'
3436
NOTIFY_MESSAGE: 'Successfully compiled Flames dotnet standalone Dev build.'
3537
WEBHOOK_URL: '${{ secrets.WEBHOOK_URL }}'
38+
DELETE_AFTER: '1'

0 commit comments

Comments
 (0)