Skip to content

Commit fc621ea

Browse files
committed
Fix ANDROID_NDK_HOME for ndk-version=latest
1 parent 94a424b commit fc621ea

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/test-action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ jobs:
7373
matrix:
7474
os: ['ubuntu-24.04', 'ubuntu-22.04', 'macos-13', 'macos-15']
7575
swift-version: ['6.0', '6.1', 'nightly-6.2']
76-
ndk-version: ['27', '28']
76+
ndk-version: ['27', 'latest']
7777
steps:
7878
- name: Checkout Action
7979
uses: actions/checkout@v4

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ runs:
229229
# can set latest, which is currently 28. See:
230230
# https://github.com/actions/runner-images/blob/main/images/ubuntu/Ubuntu2404-Readme.md#environment-variables-2
231231
# https://github.com/actions/runner-images/blob/main/images/macos/macos-13-Readme.md#environment-variables-1
232-
echo "ANDROID_NDK_HOME=${ANDROID_NDK_LATEST_HOME}" >> $GITHUB_ENV
232+
echo "ANDROID_NDK_HOME=${ANDROID_NDK_LATEST_HOME:-${ANDROID_NDK_HOME}}" >> $GITHUB_ENV
233233
elif [[ "${NDK_VERSION}" != '' ]]; then
234234
# we can set ndk-version to "27" or "27.0" or "27.2.12479018"
235235
NDK_BASE=$(dirname "${ANDROID_NDK_HOME}")

0 commit comments

Comments
 (0)