Skip to content

Commit f2d5eb0

Browse files
committed
Install mono manually on ubuntu-latest
1 parent ab51edc commit f2d5eb0

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.github/workflows/ci.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,17 @@ jobs:
5555
uses: actions/checkout@v5
5656
- name: Fetch all history for all tags and branches
5757
run: git fetch --prune --unshallow
58+
- name: Install Mono (Ubuntu only)
59+
if: matrix.os == 'ubuntu-latest'
60+
run: |
61+
sudo apt install -y ca-certificates gnupg
62+
sudo gpg --homedir /tmp --no-default-keyring \
63+
--keyring /usr/share/keyrings/mono-official-archive-keyring.gpg \
64+
--keyserver hkp://keyserver.ubuntu.com:80 \
65+
--recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
66+
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
67+
sudo apt update
68+
sudo apt install -y mono-complete
5869
- name: Setup .NET versions
5970
uses: actions/setup-dotnet@v5
6071
with:

0 commit comments

Comments
 (0)