cache golang

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

View File

@@ -33,11 +33,24 @@ jobs:
- name: Checkout repo - name: Checkout repo
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Set up Go - name: Set up Go
uses: actions/setup-go@v4 uses: actions/setup-go@v4
with: with:
go-version: '1.24.5' 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 - name: Build binaries
run: | run: |
OUTPUT="bin/${APP_NAME}-${{ matrix.os }}-${{ matrix.arch }}" OUTPUT="bin/${APP_NAME}-${{ matrix.os }}-${{ matrix.arch }}"