From 8e54cfffdff9346727fe6635522c9885450548fd Mon Sep 17 00:00:00 2001 From: MistEO Date: Fri, 6 Sep 2024 15:51:37 +0800 Subject: [PATCH] fix: try fix ndk 27 --- .github/workflows/build.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 483aa45..6890182 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -69,6 +69,16 @@ jobs: ndk-version: r27 add-to-path: false + # https://github.com/android/ndk/issues/2032#issuecomment-2274923977 + - name: fix NDK r27 + if: contains(matrix.arch, 'android') + run: | + TARGET_PATH=${{ steps.setup-ndk.outputs.ndk-path }}/build/cmake/flags.cmake + cat $TARGET_PATH + RAW_CONTENT=$(cat $TARGET_PATH) + echo "cmake_policy(PUSH)\ncmake_policy(SET CMP0057 NEW)\n${RAW_CONTENT}\ncmake_policy(POP)\n" > $TARGET_PATH + cat $TARGET_PATH + - name: Install Packages on MacOS if: runner.os == 'macOS' run: |