Skip to content

Commit

Permalink
fix: try fix ndk 27
Browse files Browse the repository at this point in the history
  • Loading branch information
MistEO committed Sep 6, 2024
1 parent d57017c commit 8e54cff
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down

0 comments on commit 8e54cff

Please sign in to comment.