Skip to content

Commit 71fe3ac

Browse files
committed
GHA: install Android tools on Mac
1 parent 3b13ffe commit 71fe3ac

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/dotnet.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ jobs:
6161
dotnet nuget locals all --clear
6262
dotnet workload install maui --source https://aka.ms/dotnet6/nuget/index.json --source https://api.nuget.org/v3/index.json
6363
dotnet workload install android ios maccatalyst tvos macos maui wasm-tools maui-maccatalyst --source https://aka.ms/dotnet6/nuget/index.json --source https://api.nuget.org/v3/index.json
64+
- name: Install Android tools
65+
run: ${ANDROID_SDK_ROOT}/cmdline-tools/latest/bin/sdkmanager --sdk_root=$ANDROID_SDK_ROOT "platforms;android-34" "build-tools;34.0.0" "platform-tools"
6466
- name: Build library (with nuget package)
6567
run: dotnet build ./Source/OxyPlot.Maui.Skia/OxyPlot.Maui.Skia.csproj /p:Configuration=Release /t:restore,build,pack /p:Version=$(git describe) /p:ContinuousIntegrationBuild=true /p:DeterministicSourcePaths=false
6668
- name: Build sample
@@ -79,9 +81,7 @@ jobs:
7981
- name: Install workloads
8082
run: dotnet workload install android wasm-tools maui-android
8183
- name: Install Android tools
82-
run: |
83-
${ANDROID_SDK_ROOT}/cmdline-tools/latest/bin/sdkmanager \
84-
--sdk_root=$ANDROID_SDK_ROOT "platform-tools"
84+
run: ${ANDROID_SDK_ROOT}/cmdline-tools/latest/bin/sdkmanager --sdk_root=$ANDROID_SDK_ROOT "platform-tools"
8585
- name: Build library (with nuget package)
8686
run: dotnet build ./Source/OxyPlot.Maui.Skia/OxyPlot.Maui.Skia.csproj /p:Configuration=Release /t:restore,build,pack /p:Version=$(git describe) /p:ContinuousIntegrationBuild=true /p:DeterministicSourcePaths=false
8787
- name: Build sample

0 commit comments

Comments
 (0)