From f371dc02240df1969b0a0ebd7598a825d8268eda Mon Sep 17 00:00:00 2001 From: TheM14 Date: Sat, 31 Oct 2026 03:57:58 +0800 Subject: [PATCH] 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. --- .github/workflows/build-android.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/build-android.yml b/.github/workflows/build-android.yml index ddbb49a..014e9a6 100644 --- a/.github/workflows/build-android.yml +++ b/.github/workflows/build-android.yml @@ -134,9 +134,8 @@ jobs: - name: Build the JNI bridge (libplayer.so) shell: bash run: | - set -euo pipefail + set -eo pipefail cd "$GITHUB_WORKSPACE/android" - source buildscripts/include/path.sh source buildscripts/include/depinfo.sh ndk="$GITHUB_WORKSPACE/android/buildscripts/sdk/android-ndk-${v_ndk}" export ANDROID_NDK_ROOT="$ndk"