-
Notifications
You must be signed in to change notification settings - Fork 12
82 lines (63 loc) · 1.76 KB
/
build.yml
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
name: Build
on:
push:
branches: [ "master" ]
paths-ignore:
- '**/README.md'
- '.github/**'
workflow_dispatch:
jobs:
windows:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install .NET Core
uses: actions/setup-dotnet@v3
with:
dotnet-version: 7.0.x
- name: Restore the application
run: nuget restore
- name: Build for Windows
run: dotnet publish Audio_Desktop -c Release -r win-x64
- name: Upload build artifacts
uses: actions/upload-artifact@v3
with:
name: net7.0_windows
path: Audio.Desktop/bin/Release/net7.0/win-x64/publish
linux:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install .NET Core
uses: actions/setup-dotnet@v3
with:
dotnet-version: 7.0.x
- name: Restore the application
run: nuget restore
- name: Build for Linux
run: dotnet publish Audio_Desktop -c Release -r linux-x64
- name: Upload build artifacts
uses: actions/upload-artifact@v3
with:
name: net7.0_linux
path: Audio.Desktop/bin/Release/net7.0/linux-x64/publish
mac:
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install .NET Core
uses: actions/setup-dotnet@v3
with:
dotnet-version: 7.0.x
- name: Restore the application
run: nuget restore
- name: Build for Mac
run: dotnet publish Audio_Desktop -c Release -r osx-x64
- name: Upload build artifacts
uses: actions/upload-artifact@v3
with:
name: net7.0_mac
path: Audio.Desktop/bin/Release/net7.0/osx-x64/publish