cache golang

This commit is contained in:
Adrian Zürcher
2025-08-05 14:15:21 +02:00
parent 29d91d1133
commit 988a332249

View File

@@ -38,6 +38,19 @@ jobs:
with:
go-version: '1.24.5'
- name: Cache Go modules
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: Download Go dependencies
run: go mod download
- name: Build binaries
run: |
OUTPUT="bin/${APP_NAME}-${{ matrix.os }}-${{ matrix.arch }}"