Do not source path.sh when building the JNI bridge

path.sh reads $cores before setting it, which aborts under set -u; the
step only needs depinfo.sh for the NDK version, and ndk-build is told
the job count directly.
This commit is contained in:
TheM14 committed 2026-10-31 03:57:58 +08:00
1 parent 5ddbd6154b
commit f371dc0224
1 file changed
+1 -2
+1 -2
View File
@@ -134,9 +134,8 @@ jobs:
- name: Build the JNI bridge (libplayer.so) - name: Build the JNI bridge (libplayer.so)
shell: bash shell: bash
run: | run: |
set -euo pipefail set -eo pipefail
cd "$GITHUB_WORKSPACE/android" cd "$GITHUB_WORKSPACE/android"
source buildscripts/include/path.sh
source buildscripts/include/depinfo.sh source buildscripts/include/depinfo.sh
ndk="$GITHUB_WORKSPACE/android/buildscripts/sdk/android-ndk-${v_ndk}" ndk="$GITHUB_WORKSPACE/android/buildscripts/sdk/android-ndk-${v_ndk}"
export ANDROID_NDK_ROOT="$ndk" export ANDROID_NDK_ROOT="$ndk"