From 7fe0f970c240ba3a3a3149b2fb38a318e4d42bf3 Mon Sep 17 00:00:00 2001 From: YuKongA <70465933+YuKongA@users.noreply.github.com> Date: Fri, 11 Mar 2022 13:34:32 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=AF=E7=94=A8=20cache?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/android.yml | 27 +++++++++++++++++++++------ 1 file changed, 21 insertions(+), 6 deletions(-) diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml index c44780ad..07ed3db4 100644 --- a/.github/workflows/android.yml +++ b/.github/workflows/android.yml @@ -3,12 +3,14 @@ name: Android CI on: pull_request: branches: [ main ] - + paths-ignore: + - 'README.md' + - 'README_EN.md' + - 'doc/*' + jobs: build: - runs-on: ubuntu-latest - steps: - uses: actions/checkout@v2 - name: set up JDK 11 @@ -17,10 +19,23 @@ jobs: java-version: '11' distribution: 'temurin' cache: gradle - + - uses: actions/cache@v2 + with: + path: | + ~/.gradle/caches + ~/.gradle/wrapper + !~/.gradle/caches/build-cache-* + key: gradle-deps-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} + restore-keys: gradle-deps + - uses: actions/cache@v2 + with: + path: | + ~/.gradle/caches/build-cache-* + key: gradle-builds-${{ github.sha }} - name: Clone UI - run: git clone https://github.com/577fkj/blockmiui.git + run: git clone https://github.com/Block-Network/blockmiui.git - name: Grant execute permission for gradlew - run: chmod +x gradlew + run: chmod +x gradlew - name: Build with Gradle run: ./gradlew build +