Skip to content

Commit 99f41e4

Browse files
authored
Try speeding up codeql workflow with action/cache (#262)
1 parent e49a204 commit 99f41e4

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,22 @@ jobs:
5050
go-version: 'stable'
5151
check-latest: true
5252
cache: true
53+
-
54+
name: chmod cache dir
55+
run: |
56+
chmod -R 0755 \
57+
~/.cache/go-build \
58+
~/go/pkg/mod
59+
-
60+
name: Action Cache
61+
uses: actions/cache@v4
62+
with:
63+
path: |
64+
~/.cache/go-build
65+
~/go/pkg/mod
66+
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
67+
restore-keys: |
68+
${{ runner.os }}-go-
5369
-
5470
name: Setup SSH key for private dependencies
5571
uses: webfactory/ssh-agent@a6f90b1f127823b31d4d4a8d96047790581349bd # v0.9.1

.github/workflows/goTest.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,13 +94,13 @@ jobs:
9494
go-version: ${{ matrix.go }}
9595
check-latest: true
9696
cache: true
97-
-
97+
-
9898
name: chmod cache dir
9999
run: |
100100
chmod -R 0755 \
101101
~/.cache/go-build \
102102
~/go/pkg/mod
103-
-
103+
-
104104
name: Action Cache
105105
uses: actions/cache@v4
106106
with:

0 commit comments

Comments
 (0)