Skip to content

Commit e0fff7d

Browse files
Install Mono on macos-15
1 parent dbb87cc commit e0fff7d

File tree

2 files changed

+16
-12
lines changed

2 files changed

+16
-12
lines changed

.github/actions/environment/action.yml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,29 @@ runs:
2222
with:
2323
log-accepted-android-sdk-licenses: false
2424

25+
# https://github.com/actions/runner-images/issues/10814
26+
- name: Workaround build-tools issue
27+
if: runner.os == 'macOS'
28+
run: |
29+
curl https://dl.google.com/android/repository/build-tools_r35_macosx.zip > $ANDROID_HOME/build-tools_r35_macosx.zip
30+
cd $ANDROID_HOME
31+
mkdir build-tools
32+
unzip build-tools_r35_macosx.zip
33+
mv android-15 build-tools/35.0.0
34+
cd -
35+
2536
- name: Set Java Version
2637
uses: actions/setup-java@v3
2738
with:
2839
distribution: 'temurin'
2940
java-version: '11'
3041

31-
# .NET 6 and .NET 8 are not built-in with macos-13
42+
- name: Install Mono
43+
if: runner.os == 'macOS'
44+
run: brew install mono
45+
3246
- name: Install .NET SDK
47+
if: runner.os != 'Windows'
3348
uses: actions/setup-dotnet@v3
3449
with:
3550
dotnet-version: |

.github/workflows/build.yml

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -123,17 +123,6 @@ jobs:
123123
- name: Restore .NET Dependencies
124124
run: dotnet restore Sentry-CI-Build-${{ runner.os }}.slnf --nologo
125125

126-
# https://github.com/actions/runner-images/issues/10814
127-
- name: Workaround build-tools issue
128-
if: runner.os == 'macOS'
129-
run: |
130-
curl https://dl.google.com/android/repository/build-tools_r35_macosx.zip > $ANDROID_HOME/build-tools_r35_macosx.zip
131-
cd $ANDROID_HOME
132-
mkdir build-tools
133-
unzip build-tools_r35_macosx.zip
134-
mv android-15 build-tools/35.0.0
135-
cd -
136-
137126
- name: Install Android SDKs
138127
if: runner.os == 'macOS'
139128
run: |

0 commit comments

Comments
 (0)