From dd06d81cc9ea8ff37f94051f4fa2296924926b7b Mon Sep 17 00:00:00 2001 From: Mario Manno Date: Tue, 23 Aug 2022 15:16:51 +0200 Subject: [PATCH] Fix cached binary in CI workflow Caching under the '0.3.9' key, but downloading 'latest'. --- .github/workflows/ci.yml | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3e561f9..4b13447 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,13 +7,17 @@ on: paths-ignore: - '*.md' -env: - FLEET_VERSION: '0.3.9' - jobs: test: runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + fleet_version: + - v0.3.9 + # - v0.3.10 + steps: - uses: actions/checkout@v3 @@ -24,13 +28,13 @@ jobs: id: fleet-cli-cache with: path: /home/runner/.local/bin - key: ${{ runner.os }}-fleet-cli-${{ env.FLEET_VERSION }} + key: ${{ runner.os }}-fleet-cli-${{ matrix.fleet_version }} - name: Download CLI if: steps.fleet-cli-cache.outputs.cache-hit != 'true' run: | mkdir -p /home/runner/.local/bin - wget -nv "https://github.com/rancher/fleet/releases/latest/download/fleet-linux-amd64" + wget -nv "https://github.com/rancher/fleet/releases/download/${{ matrix.fleet_version }}/fleet-linux-amd64" mv fleet-linux-amd64 /home/runner/.local/bin/fleet chmod +x /home/runner/.local/bin/fleet -