-
Notifications
You must be signed in to change notification settings - Fork 4
38 lines (35 loc) · 1.28 KB
/
dotnet_standalone.yml
File metadata and controls
38 lines (35 loc) · 1.28 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
name: Build dotnet standalone
on:
push:
workflow_dispatch:
schedule:
# Every day at 12am
- cron: '0 0 * * *'
concurrency:
group: ${{ github.ref }}-dotnet_standalone
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Compile Flames dotnet standalone build using mono
shell: bash
id: compile
run: |
msbuild Flames.sln /p:Configuration=Release
cp -R bin/Release bin/Release_dotnet_standalone
msbuild Flames/Flames.csproj /p:Configuration=Release /p:DefineConstants="F_STANDALONE%3BF_DOTNET%3BF_DOTNET_DEV"
- uses: ./.github/actions/notify_failure
if: ${{ always() && steps.compile.outcome == 'failure' }}
with:
NOTIFY_MESSAGE: 'Failed to compile Flames dotnet standalone build! <@999409543001931788>'
WEBHOOK_URL: '${{ secrets.WEBHOOK_URL }}'
- uses: ./.github/actions/notify_success
if: ${{ always() && steps.compile.outcome == 'success' }}
with:
SOURCE_FILE: 'bin/Release_dotnet_standalone'
DEST_NAME: 'Flames'
NOTIFY_MESSAGE: 'Successfully compiled Flames dotnet standalone build.'
WEBHOOK_URL: '${{ secrets.WEBHOOK_URL }}'
DELETE_AFTER: '1'