From 963d66762999a035e3cf00224ebd60d006e48e06 Mon Sep 17 00:00:00 2001 From: Thomas Bonfort Date: Mon, 11 Sep 2023 15:35:29 +0200 Subject: [PATCH] os cache key --- .github/workflows/ubuntu.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml index 7222692..cc03a94 100644 --- a/.github/workflows/ubuntu.yml +++ b/.github/workflows/ubuntu.yml @@ -28,9 +28,10 @@ jobs: - name: Coverage Tests run: go test . -race install-gdal: - runs-on: ubuntu-22.04 + runs-on: $${{ matrix.os }} strategy: matrix: + os: [ 'ubuntu-20.04', 'ubuntu-22.04' ] gdal: [ 'release/3.5', 'release/3.6', 'release/3.7', 'master' ] steps: - name: optgdal @@ -42,7 +43,7 @@ jobs: uses: actions/cache@v3 with: path: /optgdal - key: ${{ runner.os }}-install-gdal-${{ matrix.gdal }}-${{ hashFiles('.github/workflows/build-gdal.sh') }} + key: ${{ matrix.os }}-install-gdal-${{ matrix.gdal }}-${{ hashFiles('.github/workflows/build-gdal.sh') }} - name: Build GDAL if: steps.cache-gdal.outputs.cache-hit != 'true' run: sudo .github/workflows/build-gdal.sh ${{ matrix.gdal }}