From cabffc4f6bfd51874d474049c31f6d7ef82b8de6 Mon Sep 17 00:00:00 2001 From: mib Date: Tue, 11 Apr 2023 16:38:28 +0200 Subject: [PATCH] disable caching on windows --- .github/workflows/ci.yaml | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 1f9179e..e28f3d9 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -19,10 +19,13 @@ jobs: include: #- runner-os: ubuntu-latest # triple: x86_64-unknown-linux-gnu + # use-caching: true #- runner-os: macos-latest # triple: x86_64-apple-darwin + # use-caching: true - runner-os: windows-latest triple: x86_64-pc-windows-gnu + use-caching: false steps: # Download dependencies depending on platform - name: Download build tools [linux] @@ -57,9 +60,11 @@ jobs: with: go-version: ${{ env.GO_VERSION_SPECIFIER }} - name: Compute cache key + if: matrix.use-caching id: cache-data - run: echo "key=${{ runner.os }}-deps-$(git submodule status | sha256sum | cut -d ' ' -f1)" | tee -a $GITHUB_OUTPUT + run: echo "key=${{ runner.os }}-deps-$(git submodule status | sha256sum | cut -d ' ' -f1)" >> $GITHUB_OUTPUT - name: Cache dependencies + if: matrix.use-caching id: cache-deps uses: actions/cache@v3 with: @@ -99,7 +104,16 @@ jobs: strategy: fail-fast: false matrix: - os: [ubuntu-latest, macos-latest, windows-latest] + include: + #- runner-os: ubuntu-latest + # triple: x86_64-unknown-linux-gnu + # use-caching: true + #- runner-os: macos-latest + # triple: x86_64-apple-darwin + # use-caching: true + - runner-os: windows-latest + triple: x86_64-pc-windows-gnu + use-caching: false steps: - name: Checkout repository uses: actions/checkout@v3 @@ -108,9 +122,11 @@ jobs: with: go-version: ${{ env.GO_VERSION_SPECIFIER }} - name: Compute cache key + if: matrix.use-caching id: cache-data run: echo "key=${{ runner.os }}-deps-$(git submodule status | sha256sum | cut -d ' ' -f1)" >> $GITHUB_OUTPUT - name: Cache dependencies + if: matrix.use-caching id: cache-deps uses: actions/cache@v3 with: