Skip to content

Commit

Permalink
ci: fix go cache (#2498)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangzujian committed Mar 16, 2023
1 parent 0606f90 commit 599ed23
Show file tree
Hide file tree
Showing 8 changed files with 31 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build-arm64-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ jobs:
with:
go-version-file: go.mod
check-latest: true
cache: false

- name: Export Go full version
run: echo "GO_FULL_VER=$(go version | awk '{print $3}')" >> "$GITHUB_ENV"
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/build-kube-ovn-debug.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ jobs:
with:
go-version-file: go.mod
check-latest: true
cache: false

- name: Build
run: make image-debug
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/build-kube-ovn-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ jobs:
with:
go-version-file: go.mod
check-latest: true
cache: false

- name: Build
run: make image-test
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/build-windows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ jobs:
with:
go-version-file: go.mod
check-latest: true
cache: false

- name: Generate path filter
env:
Expand Down Expand Up @@ -178,6 +179,7 @@ jobs:
with:
go-version-file: go.mod
check-latest: true
cache: false

- name: Export Go full version
run: |
Expand Down
13 changes: 13 additions & 0 deletions .github/workflows/build-x86-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ jobs:
with:
go-version-file: go.mod
check-latest: true
cache: false

- name: Export Go full version
run: echo "GO_FULL_VER=$(go version | awk '{print $3}')" >> "$GITHUB_ENV"
Expand Down Expand Up @@ -209,6 +210,7 @@ jobs:
with:
go-version-file: ${{ env.E2E_DIR }}/go.mod
check-latest: true
cache: false

- name: Export Go full version
run: echo "GO_FULL_VER=$(go version | awk '{print $3}')" >> "$GITHUB_ENV"
Expand Down Expand Up @@ -241,6 +243,7 @@ jobs:
with:
go-version-file: go.mod
check-latest: true
cache: false

- name: Generate path filter
run: |
Expand Down Expand Up @@ -311,6 +314,7 @@ jobs:
with:
go-version-file: ${{ env.E2E_DIR }}/go.mod
check-latest: true
cache: false

- name: Export Go full version
run: echo "GO_FULL_VER=$(go version | awk '{print $3}')" >> "$GITHUB_ENV"
Expand Down Expand Up @@ -414,6 +418,7 @@ jobs:
with:
go-version-file: ${{ env.E2E_DIR }}/go.mod
check-latest: true
cache: false

- name: Export Go full version
run: echo "GO_FULL_VER=$(go version | awk '{print $3}')" >> "$GITHUB_ENV"
Expand Down Expand Up @@ -513,6 +518,7 @@ jobs:
with:
go-version-file: ${{ env.E2E_DIR }}/go.mod
check-latest: true
cache: false

- name: Export Go full version
run: echo "GO_FULL_VER=$(go version | awk '{print $3}')" >> "$GITHUB_ENV"
Expand Down Expand Up @@ -679,6 +685,7 @@ jobs:
with:
go-version-file: ${{ env.E2E_DIR }}/go.mod
check-latest: true
cache: false

- name: Export Go full version
run: echo "GO_FULL_VER=$(go version | awk '{print $3}')" >> "$GITHUB_ENV"
Expand Down Expand Up @@ -768,6 +775,7 @@ jobs:
with:
go-version-file: ${{ env.E2E_DIR }}/go.mod
check-latest: true
cache: false

- name: Export Go full version
run: echo "GO_FULL_VER=$(go version | awk '{print $3}')" >> "$GITHUB_ENV"
Expand Down Expand Up @@ -996,6 +1004,7 @@ jobs:
with:
go-version-file: ${{ env.E2E_DIR }}/go.mod
check-latest: true
cache: false

- name: Export Go full version
run: echo "GO_FULL_VER=$(go version | awk '{print $3}')" >> "$GITHUB_ENV"
Expand Down Expand Up @@ -1086,6 +1095,7 @@ jobs:
with:
go-version-file: ${{ env.E2E_DIR }}/go.mod
check-latest: true
cache: false

- name: Export Go full version
run: echo "GO_FULL_VER=$(go version | awk '{print $3}')" >> "$GITHUB_ENV"
Expand Down Expand Up @@ -1166,6 +1176,7 @@ jobs:
with:
go-version-file: ${{ env.E2E_DIR }}/go.mod
check-latest: true
cache: false

- name: Export Go full version
run: echo "GO_FULL_VER=$(go version | awk '{print $3}')" >> "$GITHUB_ENV"
Expand Down Expand Up @@ -1297,6 +1308,7 @@ jobs:
with:
go-version-file: ${{ env.E2E_DIR }}/go.mod
check-latest: true
cache: false

- name: Export Go full version
run: echo "GO_FULL_VER=$(go version | awk '{print $3}')" >> "$GITHUB_ENV"
Expand Down Expand Up @@ -1398,6 +1410,7 @@ jobs:
with:
go-version-file: ${{ env.E2E_DIR }}/go.mod
check-latest: true
cache: false

- name: Export Go full version
run: echo "GO_FULL_VER=$(go version | awk '{print $3}')" >> "$GITHUB_ENV"
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ jobs:
with:
go-version-file: go.mod
check-latest: true
cache: false

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ jobs:
with:
go-version-file: go.mod
check-latest: true
cache: false

- name: golangci-lint
uses: golangci/golangci-lint-action@v3
Expand Down
11 changes: 11 additions & 0 deletions .github/workflows/scheduled-e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ jobs:
with:
go-version-file: go.mod
check-latest: true
cache: false

- name: Export Go full version
run: echo "GO_FULL_VER=$(go version | awk '{print $3}')" >> "$GITHUB_ENV"
Expand Down Expand Up @@ -130,6 +131,7 @@ jobs:
with:
go-version-file: go.mod
check-latest: true
cache: false

- name: Export Go full version
run: echo "GO_FULL_VER=$(go version | awk '{print $3}')" >> "$GITHUB_ENV"
Expand Down Expand Up @@ -210,6 +212,7 @@ jobs:
with:
go-version-file: go.mod
check-latest: true
cache: false

- name: Export Go full version
run: echo "GO_FULL_VER=$(go version | awk '{print $3}')" >> "$GITHUB_ENV"
Expand Down Expand Up @@ -346,6 +349,7 @@ jobs:
with:
go-version-file: go.mod
check-latest: true
cache: false

- name: Export Go full version
run: echo "GO_FULL_VER=$(go version | awk '{print $3}')" >> "$GITHUB_ENV"
Expand Down Expand Up @@ -419,6 +423,7 @@ jobs:
with:
go-version-file: go.mod
check-latest: true
cache: false

- name: Export Go full version
run: echo "GO_FULL_VER=$(go version | awk '{print $3}')" >> "$GITHUB_ENV"
Expand Down Expand Up @@ -702,6 +707,7 @@ jobs:
with:
go-version-file: go.mod
check-latest: true
cache: false

- name: Export Go full version
run: echo "GO_FULL_VER=$(go version | awk '{print $3}')" >> "$GITHUB_ENV"
Expand Down Expand Up @@ -774,6 +780,7 @@ jobs:
with:
go-version-file: go.mod
check-latest: true
cache: false

- name: Export Go full version
run: echo "GO_FULL_VER=$(go version | awk '{print $3}')" >> "$GITHUB_ENV"
Expand Down Expand Up @@ -841,6 +848,7 @@ jobs:
with:
go-version-file: go.mod
check-latest: true
cache: false

- name: Export Go full version
run: echo "GO_FULL_VER=$(go version | awk '{print $3}')" >> "$GITHUB_ENV"
Expand Down Expand Up @@ -960,6 +968,7 @@ jobs:
with:
go-version-file: go.mod
check-latest: true
cache: false

- name: Export Go full version
run: echo "GO_FULL_VER=$(go version | awk '{print $3}')" >> "$GITHUB_ENV"
Expand Down Expand Up @@ -1045,6 +1054,7 @@ jobs:
with:
go-version-file: go.mod
check-latest: true
cache: false

- name: Export Go full version
run: echo "GO_FULL_VER=$(go version | awk '{print $3}')" >> "$GITHUB_ENV"
Expand Down Expand Up @@ -1125,6 +1135,7 @@ jobs:
with:
go-version-file: go.mod
check-latest: true
cache: false

- name: Export Go full version
run: echo "GO_FULL_VER=$(go version | awk '{print $3}')" >> "$GITHUB_ENV"
Expand Down

0 comments on commit 599ed23

Please sign in to comment.