Skip to content

Commit c5dcb8a

Browse files
committed
Add Mono installation to CI workflow
- Install mono-devel package before running tests - Follows official Mono installation instructions for Ubuntu - Required for running nuget.exe via Mono on GitHub Actions - Ensures tests can execute properly in CI environment
1 parent a45b592 commit c5dcb8a

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,16 @@ jobs:
4242
${{ runner.os }}-gradle-${{ matrix.gradle-version }}-
4343
${{ runner.os }}-gradle-
4444
45+
- name: Install Mono
46+
run: |
47+
sudo apt install -y ca-certificates gnupg
48+
sudo gpg --homedir /tmp --no-default-keyring --keyring gnupg-ring:/usr/share/keyrings/mono-official-archive-keyring.gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
49+
sudo chmod +r /usr/share/keyrings/mono-official-archive-keyring.gpg
50+
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
51+
sudo apt update
52+
sudo apt install -y mono-devel
53+
mono --version
54+
4555
- name: Run tests with Gradle ${{ matrix.gradle-version }}
4656
run: gradle clean test --no-daemon
4757

0 commit comments

Comments
 (0)