Skip to content

Commit c435ad9

Browse files
author
Paulo Gomes
committed
fuzz: Reuse go cache from host
Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
1 parent 5b371de commit c435ad9

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.github/workflows/cifuzz.yaml

+6-2
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,16 @@ jobs:
1313
steps:
1414
- name: Checkout
1515
uses: actions/checkout@v3
16+
- name: Setup Go
17+
uses: actions/setup-go@v3
18+
with:
19+
go-version: 1.18.x
1620
- name: Restore Go cache
1721
uses: actions/cache@v3
1822
with:
19-
path: /home/runner/work/_temp/_github_home/go/pkg/mod
23+
path: ~/go/pkg/mod
2024
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
2125
restore-keys: |
22-
${{ runner.os }}-go-
26+
${{ runner.os }}-go
2327
- name: Smoke test Fuzzers
2428
run: make fuzz-smoketest

Makefile

+1
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@ fuzz-build:
155155
docker run --rm \
156156
-e FUZZING_LANGUAGE=go -e SANITIZER=address \
157157
-e CIFUZZ_DEBUG='True' -e OSS_FUZZ_PROJECT_NAME=fluxcd \
158+
-v "$(shell go env GOMODCACHE):/root/go/pkg/mod" \
158159
-v "$(BUILD_DIR)/fuzz/out":/out \
159160
local-fuzzing:latest
160161

0 commit comments

Comments
 (0)