diff --git a/.gitea/workflows/pr-validation.yml b/.gitea/workflows/pr-validation.yml index aa594bb..1dbfb9d 100644 --- a/.gitea/workflows/pr-validation.yml +++ b/.gitea/workflows/pr-validation.yml @@ -35,6 +35,16 @@ jobs: cache: true cache-dependency-path: go.sum + - name: Cache Go modules and build cache + uses: actions/cache@v4 + with: + path: | + ~/go/pkg/mod + ~/.cache/go-build + key: ${{ runner.os }}-go-modules-${{ hashFiles('**/go.mod', '**/go.sum') }} + restore-keys: | + ${{ runner.os }}-go-modules- + - name: Cache security tools uses: actions/cache@v4 with: diff --git a/.gitea/workflows/push-validation.yml b/.gitea/workflows/push-validation.yml index 3d4f998..9da2da7 100644 --- a/.gitea/workflows/push-validation.yml +++ b/.gitea/workflows/push-validation.yml @@ -35,6 +35,16 @@ jobs: cache: true cache-dependency-path: go.sum + - name: Cache Go modules and build cache + uses: actions/cache@v4 + with: + path: | + ~/go/pkg/mod + ~/.cache/go-build + key: ${{ runner.os }}-go-modules-${{ hashFiles('**/go.mod', '**/go.sum') }} + restore-keys: | + ${{ runner.os }}-go-modules- + - name: Cache security tools uses: actions/cache@v4 with: