Skip to content

Commit

Permalink
Cache NDK per builds
Browse files Browse the repository at this point in the history
  • Loading branch information
AChep committed Nov 17, 2020
1 parent de35949 commit db1cc94
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/flutter.yml
Expand Up @@ -23,9 +23,17 @@ jobs:
- uses: actions/setup-java@v1
with:
java-version: '12.x'
- name: cache NDK
id: cache-ndk
uses: actions/cache@v2
with:
path: ${ANDROID_HOME}/ndk
key: cache-ndk-20.0.5594570-21.0.6113669
- name: install NDK 20.0.5594570
if: steps.cache-ndk.outputs.cache-hit != 'true'
run: echo "y" | sudo ${ANDROID_HOME}/tools/bin/sdkmanager --install "ndk;20.0.5594570" --sdk_root=${ANDROID_SDK_ROOT}
- name: install NDK 21.0.6113669
if: steps.cache-ndk.outputs.cache-hit != 'true'
run: echo "y" | sudo ${ANDROID_HOME}/tools/bin/sdkmanager --install "ndk;21.0.6113669" --sdk_root=${ANDROID_SDK_ROOT}
- id: vars
run: echo ::set-output name=tag::${GITHUB_REF:10}
Expand Down

0 comments on commit db1cc94

Please sign in to comment.