From 988a332249da30ae87b5a60354dd6aabfe67d792 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Z=C3=BCrcher?= Date: Tue, 5 Aug 2025 14:15:21 +0200 Subject: [PATCH] cache golang --- .gitea/workflows/build.yaml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 731a470..da4a62b 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -33,11 +33,24 @@ jobs: - name: Checkout repo uses: actions/checkout@v4 - - name: Set up Go + - name: Set up Go uses: actions/setup-go@v4 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 }}"