From e0eaf4a9032a4862a3c32e75af73140a78f53dc6 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 | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 483aa45..e173889 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -69,6 +69,15 @@ 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: | + FLAGS_PATH=${{ steps.setup-ndk.outputs.ndk-path }}/build/cmake/flags.cmake + FLAGS_CONTENT=$(cat $FLAGS_PATH) + echo -e "cmake_policy(PUSH)\ncmake_policy(SET CMP0057 NEW)\n\n${FLAGS_CONTENT}\n\ncmake_policy(POP)\n" > $FLAGS_PATH + cat $FLAGS_PATH + - name: Install Packages on MacOS if: runner.os == 'macOS' run: |