Skip to content

Commit 84adf85

Browse files
Android build macos-13
1 parent a7684d0 commit 84adf85

File tree

1 file changed

+19
-2
lines changed

1 file changed

+19
-2
lines changed

.github/workflows/release.yml

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ jobs:
6060

6161
build-android:
6262
needs: build-desktop
63-
runs-on: macos-15
63+
runs-on: macos-13
6464
env:
6565
ARCHFLAGS: --android
6666
steps:
@@ -69,13 +69,30 @@ jobs:
6969
ref: ${{ github.event.pull_request.head.ref }}
7070
fetch-depth: 0
7171

72+
- name: Setup Android SDK
73+
uses: android-actions/setup-android@v3
74+
75+
- name: Install Android NDK
76+
run: |
77+
echo "y" | $ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager "ndk;27.1.12297006"
78+
echo "ANDROID_NDK_HOME=$ANDROID_HOME/ndk/27.1.12297006" >> $GITHUB_ENV
79+
80+
- name: Verify NDK
81+
run: |
82+
echo "NDK Home: $ANDROID_NDK_HOME"
83+
ls -l $ANDROID_NDK_HOME
84+
cat $ANDROID_NDK_HOME/source.properties
85+
7286
- name: Install Dependencies
7387
uses: ./.github/workflows/reusable/cached-install
88+
env:
89+
ANDROID_NDK_HOME: ${{ env.ANDROID_NDK_HOME }}
90+
ANDROID_NDK: ${{ env.ANDROID_NDK_HOME }}
91+
NDK_HOME: ${{ env.ANDROID_NDK_HOME }}
7492

7593
- name: Package and Upload
7694
run: |
7795
cd ./packages/streamr-libstreamrproxyclient/dist
7896
gh release upload ${{ github.event.release.tag_name }} android-library-module/streamrproxyclient-android-library-module-*.tgz
7997
env:
8098
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
81-

0 commit comments

Comments
 (0)