|
| 1 | +name: Build dotnet dev |
| 2 | +# trigger via either push to selected branches or on manual run |
| 3 | +on: |
| 4 | + push: |
| 5 | + branches: |
| 6 | + - debug |
| 7 | + workflow_dispatch: |
| 8 | + |
| 9 | +concurrency: |
| 10 | + group: ${{ github.ref }}-dev |
| 11 | + cancel-in-progress: true |
| 12 | + |
| 13 | +jobs: |
| 14 | +#============================================ |
| 15 | +# ============== .NET 6.0 BUILD ============= |
| 16 | +# =========================================== |
| 17 | + build-dotnet6: |
| 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: 6.0.x |
| 26 | + - name: Restore dependencies |
| 27 | + run: dotnet restore CLI/FlamesCLI_dotnet6_dev.csproj |
| 28 | + - name: Build |
| 29 | + id: compile |
| 30 | + run: | |
| 31 | + dotnet build CLI/FlamesCLI_dotnet6_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 build!' |
| 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: 'CLI/bin/Debug/net6.0' |
| 43 | + DEST_NAME: 'Flames-net6.0' |
| 44 | + NOTIFY_MESSAGE: 'Successfully compiled Flames dotnet dev build.' |
| 45 | + WEBHOOK_URL: '${{ secrets.WEBHOOK_URL }}' |
| 46 | + |
| 47 | + # publish standalone windows binaries |
| 48 | + - name: Publish-win64 |
| 49 | + run: dotnet publish CLI/FlamesCLI_standalone6_dev.csproj -r win-x64 --self-contained |
| 50 | + |
| 51 | + - uses: ./.github/actions/notify_success_harmony |
| 52 | + if: ${{ always() && steps.compile.outcome == 'success' }} |
| 53 | + with: |
| 54 | + SOURCE_FILE: 'CLI/bin/Debug/net6.0/win-x64/publish' |
| 55 | + DEST_NAME: 'Flames-win64-standalone' |
| 56 | + NOTIFY_MESSAGE: 'Successfully compiled Flames Windows 64-bit standalone dev build.' |
| 57 | + WEBHOOK_URL: '${{ secrets.WEBHOOK_URL }}' |
| 58 | + |
| 59 | + |
| 60 | + # publish standalone linux binaries |
| 61 | + - name: Publish-linux64 |
| 62 | + run: dotnet publish CLI/FlamesCLI_standalone6_dev.csproj -r linux-x64 --self-contained |
| 63 | + |
| 64 | + - uses: ./.github/actions/notify_success_harmony |
| 65 | + if: ${{ always() && steps.compile.outcome == 'success' }} |
| 66 | + with: |
| 67 | + SOURCE_FILE: 'CLI/bin/Debug/net6.0/linux-x64/publish' |
| 68 | + DEST_NAME: 'Flames-linux64-standalone' |
| 69 | + NOTIFY_MESSAGE: 'Successfully compiled Flames Linux 64-bit standalone dev build.' |
| 70 | + WEBHOOK_URL: '${{ secrets.WEBHOOK_URL }}' |
0 commit comments