-
Notifications
You must be signed in to change notification settings - Fork 4
84 lines (74 loc) · 3.12 KB
/
dotnet.yml
File metadata and controls
84 lines (74 loc) · 3.12 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
name: Build dotnet
# trigger via either push to selected branches or on manual run
on:
push:
workflow_dispatch:
schedule:
# Every day at 12am
- cron: '0 0 * * *'
concurrency:
group: ${{ github.ref }}-dotnet
cancel-in-progress: true
jobs:
#============================================
# ============== .NET 8.0 BUILD =============
# ===========================================
build-dotnet8:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Restore dependencies
run: dotnet restore CLI/FlamesCLI_dotnet8.csproj
- name: Build
id: compile
run: |
dotnet build CLI/FlamesCLI_dotnet8.csproj --no-restore
- uses: ./.github/actions/notify_failure
if: ${{ always() && steps.compile.outcome == 'failure' }}
with:
NOTIFY_MESSAGE: 'Failed to compile Flames dotnet build! <@999409543001931788>'
WEBHOOK_URL: '${{ secrets.WEBHOOK_URL }}'
- uses: ./.github/actions/notify_success
if: ${{ always() && steps.compile.outcome == 'success' }}
with:
SOURCE_FILE: 'CLI/bin/Debug/net8.0'
DEST_NAME: 'Flames-net8.0'
NOTIFY_MESSAGE: 'Successfully compiled Flames dotnet build.'
WEBHOOK_URL: '${{ secrets.WEBHOOK_URL }}'
DELETE_AFTER: '1'
- name: Publish-win64
id: publishWin64
run: dotnet publish CLI/FlamesCLI_standalone8.csproj -r win-x64 --self-contained
- uses: ./.github/actions/notify_success
if: ${{ always() && steps.publishWin64.outcome == 'success' }}
with:
SOURCE_FILE: 'CLI/bin/Debug/net8.0/win-x64/publish'
DEST_NAME: 'Flames-win64-standalone'
NOTIFY_MESSAGE: 'Successfully compiled Flames Windows 64-bit standalone build.'
WEBHOOK_URL: '${{ secrets.WEBHOOK_URL }}'
DELETE_AFTER: '1'
- uses: ./.github/actions/notify_failure
if: ${{ always() && steps.publishWin64.outcome == 'failure' }}
with:
NOTIFY_MESSAGE: 'Failed to compile Flames Windows 64-bit standalone build! <@999409543001931788>'
WEBHOOK_URL: '${{ secrets.WEBHOOK_URL }}'
- name: Publish-linux64
id: publishLinux64
run: dotnet publish CLI/FlamesCLI_standalone8.csproj -r linux-x64 --self-contained
- uses: ./.github/actions/notify_success
if: ${{ always() && steps.publishLinux64.outcome == 'success' }}
with:
SOURCE_FILE: 'CLI/bin/Debug/net8.0/linux-x64/publish'
DEST_NAME: 'Flames-linux64-standalone'
NOTIFY_MESSAGE: 'Successfully compiled Flames Linux 64-bit standalone build.'
WEBHOOK_URL: '${{ secrets.WEBHOOK_URL }}'
DELETE_AFTER: '1'
- uses: ./.github/actions/notify_failure
if: ${{ always() && steps.publishLinux64.outcome == 'failure' }}
with:
NOTIFY_MESSAGE: 'Failed to compile Flames Linux 64-bit standalone build! <@999409543001931788>'
WEBHOOK_URL: '${{ secrets.WEBHOOK_URL }}'