-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (31 loc) · 1.18 KB
/
build.yml
File metadata and controls
36 lines (31 loc) · 1.18 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
name: Build latest
on: [push]
concurrency:
group: ${{ github.ref }}-latest
cancel-in-progress: true
jobs:
build-mono:
if: github.ref_name == github.event.repository.default_branch
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Compile MCSharp using mono
shell: bash
id: compile
run: |
msbuild MCSharp.sln /p:Configuration=Release
cp -R bin/Release bin/Release_normal
rm bin/Release/MCSharp_.dll bin/Release/MCSharp_.pdb
msbuild MCSharp/MCSharp.csproj /p:Configuration=Release
- uses: ./.github/actions/notify_failure
if: ${{ always() && steps.compile.outcome == 'failure' }}
with:
NOTIFY_MESSAGE: 'Failed to compile MCSharp .NET build! <@999409543001931788>'
WEBHOOK_URL: '${{ secrets.WEBHOOK_URL }}'
- uses: ./.github/actions/notify_success
if: ${{ always() && steps.compile.outcome == 'success' }}
with:
SOURCE_FILE: 'bin/Release_normal'
DEST_NAME: 'MCSharp'
NOTIFY_MESSAGE: 'Successfully compiled MCSharp .NET build.'
WEBHOOK_URL: '${{ secrets.WEBHOOK_URL }}'