Skip to content

Commit 83340e5

Browse files
committed
Add CI for ubuntu
1 parent 8d785f9 commit 83340e5

File tree

1 file changed

+18
-5
lines changed

1 file changed

+18
-5
lines changed

.github/workflows/test-builds.yml

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,24 @@ on:
88

99
jobs:
1010
build:
11-
runs-on: windows-latest
11+
strategy:
12+
matrix:
13+
os: [ubuntu-latest, windows-latest]
14+
runs-on: ${{ matrix.os }}
1215
steps:
1316
- uses: actions/checkout@v4
1417
- name: Setup MSBuild
1518
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'
1629
- name: Restore Packages
1730
run: msbuild XenAdmin.sln -t:restore
1831
- name: Build Release solution
@@ -22,10 +35,10 @@ jobs:
2235
- name: Upload Release Artifacts
2336
uses: actions/upload-artifact@v4
2437
with:
25-
name: drop-release
26-
path: XenAdmin/bin/Release/net481
38+
name: drop-release-${{ matrix.os }}
39+
path: XenAdmin/bin/Release/net48
2740
- name: Upload Debug Artifacts
2841
uses: actions/upload-artifact@v4
2942
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

Comments
 (0)