diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 268a88fc..32d1b580 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -15,6 +15,14 @@ jobs: with: distribution: 'zulu' java-version: '17' + - uses: actions/cache@v2 + with: + path: | + ~/.gradle/caches + ~/.gradle/wrapper + key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} + restore-keys: | + ${{ runner.os }}-gradle- - uses: gradle/wrapper-validation-action@v1 - uses: gradle/gradle-build-action@v2 - name: Build diff --git a/.github/workflows/web_build.yml b/.github/workflows/web_build.yml index 1287452e..7054d93d 100644 --- a/.github/workflows/web_build.yml +++ b/.github/workflows/web_build.yml @@ -22,6 +22,15 @@ jobs: distribution: 'zulu' java-version: '17' + - uses: actions/cache@v2 + with: + path: | + ~/.gradle/caches + ~/.gradle/wrapper + key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} + restore-keys: | + ${{ runner.os }}-gradle- + - name: Validate Gradle Wrapper uses: gradle/wrapper-validation-action@v1