From 0412c7469a54f5a0e6e9bc2cade60262eceb8968 Mon Sep 17 00:00:00 2001 From: Austin Vazquez Date: Wed, 28 Jun 2023 02:21:47 +0000 Subject: [PATCH] fix: setup-go in CI to resolve cache warnings Signed-off-by: Austin Vazquez --- .github/workflows/ci.yaml | 1 + .github/workflows/release.yaml | 44 ++++++++++++++++++++++++---------- 2 files changed, 33 insertions(+), 12 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 7283832..dd84053 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -34,6 +34,7 @@ jobs: - uses: actions/setup-go@v4 with: go-version-file: e2e/go.mod + cache-dependency-path: e2e/go.sum cache: true - name: Clean up previous files run: | diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 17c2cab..722fd04 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -21,15 +21,20 @@ 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 + # Go cache is broken for Go 1.19 across OS versions. + # Disabling until upgrade past Go 1.19 or issue is resolved upstream. + # See https://github.com/actions/setup-go/issues/368 + cache: false + - name: Install dependencies # QEMU: required by Lima itself # bash: required by test-example.sh (OS version of bash is too old) @@ -78,15 +83,20 @@ 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 + # Go cache is broken for Go 1.19 across OS versions. + # Disabling until upgrade past Go 1.19 or issue is resolved upstream. + # See https://github.com/actions/setup-go/issues/368 + cache: false + - name: Install dependencies # QEMU: required by Lima itself # bash: required by test-example.sh (OS version of bash is too old) @@ -126,15 +136,20 @@ 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 + # Go cache is broken for Go 1.19 across OS versions. + # Disabling until upgrade past Go 1.19 or issue is resolved upstream. + # See https://github.com/actions/setup-go/issues/368 + cache: false + - name: Create Ventura limactl tarball working-directory: src/lima run: | @@ -152,15 +167,20 @@ 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 + # Go cache is broken for Go 1.19 across OS versions. + # Disabling until upgrade past Go 1.19 or issue is resolved upstream. + # See https://github.com/actions/setup-go/issues/368 + cache: false + - name: Create Ventura limactl tarball working-directory: src/lima run: |