Skip to content

Commit

Permalink
fix: setup-go in CI to resolve cache warnings (#120)
Browse files Browse the repository at this point in the history
Issue #, if available:
N/A

*Description of changes:*
Have checkout before setup-go to resolve cache warnings.

*Testing done:*


- [x] I've reviewed the guidance in CONTRIBUTING.md


#### License Acceptance

By submitting this pull request, I confirm that my contribution is made
under the terms of the Apache 2.0 license.

Signed-off-by: Austin Vazquez <macedonv@amazon.com>
  • Loading branch information
austinvazquez authored Aug 25, 2023
1 parent 3353d02 commit 2ab5503
Showing 1 changed file with 16 additions and 12 deletions.
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.20.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.20.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.20.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.20.x

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

0 comments on commit 2ab5503

Please sign in to comment.