From 6761f757700f88982125731350d982b57a9a89a1 Mon Sep 17 00:00:00 2001 From: "Stanislav N. aka pztrn" Date: Thu, 11 Sep 2025 05:57:24 +0500 Subject: [PATCH] Caching and CI. --- .gitea/workflows/on-push.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/on-push.yml b/.gitea/workflows/on-push.yml index 955ef6f..83c0cc8 100644 --- a/.gitea/workflows/on-push.yml +++ b/.gitea/workflows/on-push.yml @@ -7,13 +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: /root/go/ + path: /home/container/go key: bunker-go-cache restore_key: bunker-go-cache - name: "lint" @@ -23,13 +26,16 @@ jobs: Tests: 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: /root/go/ + path: /home/container/go key: bunker-go-cache restore_key: bunker-go-cache - name: "tests"