Skip to content

Commit 72d56c5

Browse files
authored
ci: install Mono for Ubuntu (ARM64) (#4545)
1 parent 03721c1 commit 72d56c5

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

.github/actions/environment/action.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ runs:
6767
distribution: ${{ runner.os == 'Windows' && runner.arch == 'ARM64' && 'microsoft' || 'temurin' }}
6868
java-version: '11'
6969

70-
- name: Install Mono
70+
- name: Install Mono (macOS)
7171
if: runner.os == 'macOS'
7272
shell: bash
7373
# Attempt to install Mono, allowing it to fail silently
@@ -76,6 +76,14 @@ runs:
7676
brew install mono || true
7777
brew link --overwrite mono
7878
79+
- name: Install Mono (Ubuntu)
80+
if: ${{ runner.os == 'Linux' && !matrix.container }}
81+
shell: bash
82+
run: |
83+
sudo apt install -y mono-devel
84+
# restore perms for actions/setup-dotnet
85+
sudo chmod -R a+rw /usr/share/dotnet
86+
7987
- name: Install .NET SDK
8088
uses: actions/setup-dotnet@v4
8189
with:

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
fail-fast: false
2020
matrix:
2121
include:
22-
- os: ubuntu-22.04 # Pin ubuntu to ensure mono is installed
22+
- os: ubuntu-22.04
2323
rid: linux-x64
2424
- os: ubuntu-22.04-arm
2525
rid: linux-arm64
@@ -82,7 +82,7 @@ jobs:
8282
fail-fast: false
8383
matrix:
8484
include:
85-
- os: ubuntu-22.04 # Pin ubuntu to ensure mono is installed
85+
- os: ubuntu-22.04
8686
rid: linux-x64
8787
slnf: Sentry-CI-Build-Linux.slnf
8888
- os: ubuntu-22.04-arm

0 commit comments

Comments
 (0)