From 13bb137de7afbd575d2525b213bf39280abf2a9d Mon Sep 17 00:00:00 2001 From: Jan Klattenhoff Date: Wed, 25 Sep 2024 10:46:41 +0200 Subject: [PATCH] build: add caching for Gradle in workflow configuration --- .gitea/workflows/qs.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/.gitea/workflows/qs.yml b/.gitea/workflows/qs.yml index 09536ee..30d3d8a 100644 --- a/.gitea/workflows/qs.yml +++ b/.gitea/workflows/qs.yml @@ -12,6 +12,19 @@ jobs: steps: - name: "Checkout" uses: actions/checkout@v3 + - uses: actions/cache@v3 + with: + path: | + $HOME/.m2/repository + ~/.m2/repository + ./.gradle + ./app/build + ./build + ./release + key: gradle-${{ runner.os }} + restore-keys: | + gradle-${{ runner.os }} + gradle- - name: Setup Gradle uses: gradle/gradle-build-action@v2 - name: "Check" @@ -26,6 +39,19 @@ jobs: steps: - name: "Checkout" uses: actions/checkout@v3 + - uses: actions/cache@v3 + with: + path: | + $HOME/.m2/repository + ~/.m2/repository + ./.gradle + ./app/build + ./build + ./release + key: gradle-${{ runner.os }} + restore-keys: | + gradle-${{ runner.os }} + gradle- - name: Setup Gradle uses: gradle/gradle-build-action@v2 - name: "Check"