Skip to content

Build dev dotnet

Build dev dotnet #178

Workflow file for this run

name: Build dev 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 }}-dev_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_dev.csproj
- name: Build
id: compile
run: |
dotnet build CLI/FlamesCLI_dotnet8_dev.csproj --no-restore
- uses: ./.github/actions/notify_failure_harmony
if: ${{ always() && steps.compile.outcome == 'failure' }}
with:
NOTIFY_MESSAGE: 'Failed to compile Flames dev dotnet build! <@999409543001931788>'
WEBHOOK_URL: '${{ secrets.WEBHOOK_URL }}'
- uses: ./.github/actions/notify_success_harmony
if: ${{ always() && steps.compile.outcome == 'success' }}
with:
SOURCE_FILE: 'CLI/bin/Debug/net8.0'
DEST_NAME: 'Harmony-net8.0'
NOTIFY_MESSAGE: 'Successfully compiled Flames dev dotnet build.'
WEBHOOK_URL: '${{ secrets.WEBHOOK_URL }}'
DELETE_AFTER: '1'
# publish standalone windows binaries
- name: Publish-win64
id: publishWin64
run: dotnet publish CLI/FlamesCLI_standalone8_dev.csproj -r win-x64 --self-contained
- uses: ./.github/actions/notify_success_harmony
if: ${{ always() && steps.publishWin64.outcome == 'success' }}
with:
SOURCE_FILE: 'CLI/bin/Debug/net8.0/win-x64/publish'
DEST_NAME: 'Harmony-win64-standalone'
NOTIFY_MESSAGE: 'Successfully compiled Flames dev Windows 64-bit standalone build.'
WEBHOOK_URL: '${{ secrets.WEBHOOK_URL }}'
DELETE_AFTER: '1'
- uses: ./.github/actions/notify_failure_harmony
if: ${{ always() && steps.publishWin64.outcome == 'failure' }}
with:
NOTIFY_MESSAGE: 'Failed to compile Flames dev Windows 64-bit standalone build! <@999409543001931788>'
WEBHOOK_URL: '${{ secrets.WEBHOOK_URL }}'
# publish standalone linux binaries
- name: Publish-linux64
id: publishLinux64
run: dotnet publish CLI/FlamesCLI_standalone8_dev.csproj -r linux-x64 --self-contained
- uses: ./.github/actions/notify_success_harmony
if: ${{ always() && steps.publishLinux64.outcome == 'success' }}
with:
SOURCE_FILE: 'CLI/bin/Debug/net8.0/linux-x64/publish'
DEST_NAME: 'Harmony-linux64-standalone'
NOTIFY_MESSAGE: 'Successfully compiled Flames dev Linux 64-bit standalone build.'
WEBHOOK_URL: '${{ secrets.WEBHOOK_URL }}'
DELETE_AFTER: '1'
- uses: ./.github/actions/notify_failure_harmony
if: ${{ always() && steps.publishLinux64.outcome == 'failure' }}
with:
NOTIFY_MESSAGE: 'Failed to compile Flames dev Linux 64-bit standalone build! <@999409543001931788>'
WEBHOOK_URL: '${{ secrets.WEBHOOK_URL }}'