From 2ab550381e8a06654138d8d60e210f18e806b69e Mon Sep 17 00:00:00 2001 From: Austin Vazquez <55906459+austinvazquez@users.noreply.github.com> Date: Fri, 25 Aug 2023 16:04:48 -0700 Subject: [PATCH] fix: setup-go in CI to resolve cache warnings (#120) 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 --- .github/workflows/release.yaml | 28 ++++++++++++++++------------ 1 file changed, 16 insertions(+), 12 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 68285a4..b8d82bc 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -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) @@ -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) @@ -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: | @@ -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: |