Skip to content

Commit 7b7fcb2

Browse files
author
Mitchell Hwang
committed
Add Android dependencies to publish check
1 parent 420dd15 commit 7b7fcb2

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/publish-mono-samples.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,18 @@ jobs:
3636
run: |
3737
cd ./core/mono-samples/iOS
3838
dotnet publish /p:RunningOnCI=True
39+
- name: Setup Android Sample Dependencies
40+
run: |
41+
echo "Setting up Android NDK"
42+
export ANDROID_NDK_ROOT=~/android-ndk-r21b
43+
curl https://dl.google.com/android/repository/android-ndk-r21b-darwin-x86_64.zip -L --output andk.zip
44+
unzip andk.zip -d $(dirname ${ANDROID_NDK_ROOT}) && rm -rf andk.zip
45+
echo "Setting up Android SDK"
46+
export ANDROID_SDK_ROOT=~/android-sdk
47+
curl https://dl.google.com/android/repository/commandlinetools-darwin-6200805_latest.zip -L --output asdk.zip
48+
unzip asdk.zip -d ${ANDROID_SDK_ROOT} && rm -rf asdk.zip
49+
yes | ${ANDROID_SDK_ROOT}/tools/bin/./sdkmanager --sdk_root=${ANDROID_SDK_ROOT} --licenses
50+
${ANDROID_SDK_ROOT}/tools/bin/./sdkmanager --sdk_root=${ANDROID_SDK_ROOT} "platform-tools" "platforms;android-29" "build-tools;29.0.3"
3951
- name: Publish mono Android sample
4052
run: |
4153
cd ./core/mono-samples/iOS

0 commit comments

Comments
 (0)