Skip to content

Commit 167e8fd

Browse files
committed
Workflow build enviroment
1 parent 5c6339c commit 167e8fd

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/build.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,14 @@ jobs:
1919
uses: actions/setup-go@v2
2020
with:
2121
go-version: '1.24.0' # Use the Go version that Gitea supports
22-
22+
# Step 3: Cache Go modules to speed up builds
23+
- name: Cache Go modules
24+
uses: actions/cache@v2
25+
with:
26+
path: ~/go/pkg/mod
27+
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
28+
restore-keys: |
29+
${{ runner.os }}-go-
2330
# Step 3: Install dependencies
2431
- name: Install dependencies
2532
run: |

0 commit comments

Comments
 (0)