Skip to content

Commit

Permalink
fix: setup-go in CI to resolve cache warnings
Browse files Browse the repository at this point in the history
Signed-off-by: Austin Vazquez <[email protected]>
  • Loading branch information
austinvazquez committed Jul 20, 2023
1 parent eaeaa96 commit f86d546
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
- uses: actions/setup-go@v4
with:
go-version-file: e2e/go.mod
cache: true
cache-dependency-path: e2e/go.sum
- name: Clean up previous files
run: |
sudo rm -rf ~/.lima
Expand Down
28 changes: 16 additions & 12 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,16 @@ jobs:
runs-on: [self-hosted, macos, arm64, 11, release]
timeout-minutes: 60
steps:
- uses: actions/setup-go@v4
with:
go-version: 1.19.x
- uses: actions/checkout@v3
with:
fetch-depth: 1
submodules: recursive
persist-credentials: false

- uses: actions/setup-go@v4
with:
go-version: 1.19.x

- name: Install dependencies
# QEMU: required by Lima itself
# bash: required by test-example.sh (OS version of bash is too old)
Expand Down Expand Up @@ -78,15 +79,16 @@ jobs:
runs-on: [self-hosted, macos, amd64, 11, release]
timeout-minutes: 60
steps:
- uses: actions/setup-go@v4
with:
go-version: 1.19.x
- uses: actions/checkout@v3
with:
fetch-depth: 1
submodules: recursive
persist-credentials: false

- uses: actions/setup-go@v4
with:
go-version: 1.19.x

- name: Install dependencies
# QEMU: required by Lima itself
# bash: required by test-example.sh (OS version of bash is too old)
Expand Down Expand Up @@ -126,15 +128,16 @@ jobs:
runs-on: [self-hosted, macos, arm64, 13, release]
timeout-minutes: 60
steps:
- uses: actions/setup-go@v4
with:
go-version: 1.19.x
- uses: actions/checkout@v3
with:
fetch-depth: 1
submodules: recursive
persist-credentials: false

- uses: actions/setup-go@v4
with:
go-version: 1.19.x

- name: Create Ventura limactl tarball
working-directory: src/lima
run: |
Expand All @@ -152,15 +155,16 @@ jobs:
runs-on: [self-hosted, macos, amd64, 13, release]
timeout-minutes: 60
steps:
- uses: actions/setup-go@v4
with:
go-version: 1.19.x
- uses: actions/checkout@v3
with:
fetch-depth: 1
submodules: recursive
persist-credentials: false

- uses: actions/setup-go@v4
with:
go-version: 1.19.x

- name: Create Ventura limactl tarball
working-directory: src/lima
run: |
Expand Down

0 comments on commit f86d546

Please sign in to comment.