8
8
9
9
jobs :
10
10
build :
11
- runs-on : windows-latest
11
+ strategy :
12
+ matrix :
13
+ os : [ubuntu-latest, windows-latest]
14
+ runs-on : ${{ matrix.os }}
12
15
steps :
13
16
- uses : actions/checkout@v4
14
17
- name : Setup MSBuild
15
18
uses : microsoft/setup-msbuild@v2
19
+ if : matrix.os == 'windows-latest'
20
+ - name : Setup Mono repository
21
+ if : matrix.os == 'ubuntu-latest'
22
+ run : >
23
+ gpg --homedir /tmp --no-default-keyring --keyring /usr/share/keyrings/mono-official-archive-keyring.gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
24
+ && echo "deb [signed-by=/usr/share/keyrings/mono-official-archive-keyring.gpg] https://download.mono-project.com/repo/ubuntu stable-focal main" | sudo tee /etc/apt/sources.list.d/mono-official-stable.list
25
+ && sudo apt-get update
26
+ - name : Setup Mono
27
+ run : sudo apt-get install -y mono-devel
28
+ if : matrix.os == 'ubuntu-latest'
16
29
- name : Restore Packages
17
30
run : msbuild XenAdmin.sln -t:restore
18
31
- name : Build Release solution
@@ -22,10 +35,10 @@ jobs:
22
35
- name : Upload Release Artifacts
23
36
uses : actions/upload-artifact@v4
24
37
with :
25
- name : drop-release
26
- path : XenAdmin/bin/Release/net481
38
+ name : drop-release-${{ matrix.os }}
39
+ path : XenAdmin/bin/Release/net48
27
40
- name : Upload Debug Artifacts
28
41
uses : actions/upload-artifact@v4
29
42
with :
30
- name : drop-debug
31
- path : XenAdmin/bin/Debug/net481
43
+ name : drop-debug-${{ matrix.os }}
44
+ path : XenAdmin/bin/Debug/net48
0 commit comments