From 2ecb13d0eac5ede78b61a97a99f6bef968163501 Mon Sep 17 00:00:00 2001 From: msiglreith Date: Thu, 15 Oct 2020 22:40:47 +0200 Subject: [PATCH] ci: cache ndk download (#83) --- .github/workflows/rust.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index d8f656d3..f2d6ea07 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -33,7 +33,15 @@ jobs: steps: - uses: actions/checkout@v2 + - name: Cache NDK + id: cache-ndk + uses: actions/cache@v2 + with: + path: android-ndk-r20 + key: android-ndk-r20-${{ runner.os }} + - name: Download NDK + if: steps.cache-ndk.outputs.cache-hit != 'true' run: | curl -LO https://dl.google.com/android/repository/android-ndk-r20-linux-x86_64.zip unzip android-ndk-r20-linux-x86_64.zip -d $GITHUB_WORKSPACE