Skip to content

Commit

Permalink
setup ndk for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
ViliusSutkus89 committed Jun 16, 2024
1 parent 8c24bad commit e477838
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,11 @@ jobs:
- name: checkout
uses: actions/checkout@v4

- name: install ndk
if: startsWith(matrix.config.compiler, 'ndk-')
run: echo "y" | sudo ${ANDROID_HOME}/cmdline-tools/latest/bin/sdkmanager --install `echo "${{ matrix.config.compiler }}" | tr - ";"`
- name: Setup Android SDK
uses: android-actions/setup-android@v3
with:
packages: 'ndk;26.3.11579264'

- name: expand ANDROID_HOME env var in conan profile
if: startsWith(matrix.config.compiler, 'ndk-')
run: perl -pi -e 's/\$ANDROID_HOME/$ENV{ANDROID_HOME}/g' .github/config/${{ matrix.config.os }}-${{ matrix.config.compiler }}/conan/profiles/host
Expand Down

0 comments on commit e477838

Please sign in to comment.