From 923979a98a9dd7c52056630321bd699acb27b95a Mon Sep 17 00:00:00 2001 From: "Stanislav N. aka pztrn" Date: Thu, 11 Sep 2025 06:04:54 +0500 Subject: [PATCH] More on caching in CI. --- .gitea/workflows/on-push.yml | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/.gitea/workflows/on-push.yml b/.gitea/workflows/on-push.yml index 83c0cc8..a0fff76 100644 --- a/.gitea/workflows/on-push.yml +++ b/.gitea/workflows/on-push.yml @@ -7,18 +7,16 @@ on: jobs: Linting: runs-on: "ubuntu-22.04" - env: - GOCACHE: /home/container/go/buildcache - GOMODCACHE: /home/container/go/pkg steps: - name: "checkout source" uses: actions/checkout@v4 - name: "cache go dependencies" uses: actions/cache@v4 with: - path: /home/container/go + path: | + ~/.cache/go-build + ~/go/pkg/mod key: bunker-go-cache - restore_key: bunker-go-cache - name: "lint" uses: docker://code.pztrn.name/containers/go-toolbox:v6 with: @@ -35,9 +33,10 @@ jobs: - name: "cache go dependencies" uses: actions/cache@v4 with: - path: /home/container/go + path: | + ~/.cache/go-build + ~/go/pkg/mod key: bunker-go-cache - restore_key: bunker-go-cache - name: "tests" uses: docker://code.pztrn.name/containers/go-toolbox:v6 with: