From bc4d1152e13eb4bac6fa83269ddebb07cd3dd897 Mon Sep 17 00:00:00 2001 From: Tine Date: Mon, 3 Jun 2024 21:34:39 +0200 Subject: [PATCH] ci: go cache --- .github/workflows/build.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 8620586..4828fab 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -47,6 +47,16 @@ jobs: type=semver,pattern={{major}} type=sha + - name: Setup Golang cache + uses: actions/cache@v4 + with: + path: | + ~/.cache/go-build + ~/go/pkg/mod + key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} + restore-keys: | + ${{ runner.os }}-go- + - name: Build binaries run: devbox run -- just build-bin