Skip to content
This repository was archived by the owner on Aug 11, 2025. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 13 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ on:
- '.github/**'
workflow_dispatch:

env:
DOTNET_VERSION: '8.0'
CONFIGURATION: Release

jobs:
windows:
runs-on: windows-latest
Expand All @@ -19,19 +23,19 @@ jobs:
- name: Install .NET Core
uses: actions/setup-dotnet@v3
with:
dotnet-version: 8.0.x
dotnet-version: ${{ env.DOTNET_VERSION }}

- name: Restore the application
run: nuget restore

- name: Build for Windows
run: dotnet publish Audio.Desktop -c Release -r win-x64
run: dotnet publish Audio.Desktop -c ${{ env.CONFIGURATION }} -r win-x64 --property:PublishDir='./publish'

- name: Upload build artifacts
uses: actions/upload-artifact@v3
with:
name: net8.0_windows
path: Audio.Desktop/bin/Release/net8.0/win-x64/publish
path: ./publish

linux:
runs-on: ubuntu-latest
Expand All @@ -43,19 +47,19 @@ jobs:
- name: Install .NET Core
uses: actions/setup-dotnet@v3
with:
dotnet-version: 8.0.x
dotnet-version: ${{ env.DOTNET_VERSION }}

- name: Restore the application
run: nuget restore

- name: Build for Linux
run: dotnet publish Audio.Desktop -c Release -r linux-x64
run: dotnet publish Audio.Desktop -c ${{ env.CONFIGURATION }} -r linux-x64 --property:PublishDir='./publish'

- name: Upload build artifacts
uses: actions/upload-artifact@v3
with:
name: net8.0_linux
path: Audio.Desktop/bin/Release/net8.0/linux-x64/publish
path: ./publish

osx:
runs-on: ubuntu-latest
Expand All @@ -67,16 +71,16 @@ jobs:
- name: Install .NET Core
uses: actions/setup-dotnet@v3
with:
dotnet-version: 8.0.x
dotnet-version: ${{ env.DOTNET_VERSION }}

- name: Restore the application
run: nuget restore

- name: Build for Mac
run: dotnet publish Audio.Desktop -c Release -r osx-x64
run: dotnet publish Audio.Desktop -c ${{ env.CONFIGURATION }} -r osx-x64 --property:PublishDir='./publish'

- name: Upload build artifacts
uses: actions/upload-artifact@v3
with:
name: net8.0_osx
path: Audio.Desktop/bin/Release/net8.0/osx-x64/publish
path: ./publish