From e43275d6fe817c10adbcba0cb7fcb84f96fd3445 Mon Sep 17 00:00:00 2001 From: Natsu Date: Tue, 18 Jun 2024 19:14:26 +0700 Subject: [PATCH] chore: Update build cache configuration --- .github/workflows/build.yml | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2577aa6..872cbfc 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -8,12 +8,33 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - name: Checkout + uses: actions/checkout@v3 with: submodules: recursive + - name: Setup Android Development Environment uses: android-actions/setup-android@v2 + - name: Cache Gradle + uses: actions/cache@v3 + with: + path: | + ~/.gradle/caches + ~/.gradle/wrapper + key: gradle-${{ runner.os }}-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} + restore-keys: | + gradle-${{ runner.os }}- + + - name: Cache CMake + uses: actions/cache@v3 + with: + path: | + /usr/local/lib/android/sdk/cmake/3.22.1 + key: cmake-${{ runner.os }}-3.22.1 + restore-keys: | + cmake-${{ runner.os }}- + - name: Install Dependencies run: | sdkmanager --install "cmake;3.22.1"