Skip to content

Commit a745903

Browse files
committed
ci(kmp): set ANDROID_SDK_ROOT and write local.properties
Set the ANDROID_SDK_ROOT environment variable and generate local.properties in the KMP test workflow to ensure correct Android SDK path usage.
1 parent ac082c0 commit a745903

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/kmp-test.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ jobs:
2727
test-mpp-core:
2828
name: Test mpp-core (KMP)
2929
runs-on: ubuntu-latest
30+
env:
31+
ANDROID_SDK_ROOT: ${{ github.workspace }}/android-sdk
3032
steps:
3133
# Free GitHub Actions Environment Disk Space
3234
- name: Maximize Build Space
@@ -58,6 +60,9 @@ jobs:
5860
run: |
5961
yes | $ANDROID_SDK_ROOT/cmdline-tools/latest/bin/sdkmanager --licenses || true
6062
63+
- name: Write local.properties
64+
run: echo "sdk.dir=${ANDROID_SDK_ROOT}" > local.properties
65+
6166
# Setup Gradle
6267
- name: Setup Gradle
6368
uses: gradle/actions/setup-gradle@v4

0 commit comments

Comments
 (0)