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 e0eaf4a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down

0 comments on commit e0eaf4a

Please sign in to comment.