From c92c2a189b01804df39bdb917a29578bf8145851 Mon Sep 17 00:00:00 2001 From: Robbert van der Helm Date: Sun, 13 Nov 2022 18:46:29 +0100 Subject: [PATCH] Fix conditional caching on Windows CI runners Oops. --- .github/workflows/build.yml | 6 +++--- .github/workflows/docs.yml | 6 +++--- .github/workflows/test.yml | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0436ff69..b40b9931 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -40,17 +40,17 @@ jobs: sudo apt-get install -y libasound2-dev libgl-dev libjack-dev libxcb1-dev libxcb-icccm4-dev libxcursor-dev libxkbcommon-dev libxcb-shape0-dev libxcb-xfixes0-dev - uses: actions/cache@v2 + # FIXME: Caching `target/` causes the Windows runner to blow up after some time + if: startsWith(matrix.os, 'windows') with: - # FIXME: Caching `target/` causes the Windows runner to blow up after some time - if: startsWith(matrix.os, 'windows') path: | ~/.cargo/registry/index/ ~/.cargo/registry/cache/ ~/.cargo/git/db/ key: ${{ matrix.name }}-${{ matrix.cross-target }} - uses: actions/cache@v2 + if: "!startsWith(matrix.os, 'windows')" with: - if: "!startsWith(matrix.os, 'windows')" path: | ~/.cargo/registry/index/ ~/.cargo/registry/cache/ diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 3a5ecc66..daa5e01a 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -26,17 +26,17 @@ jobs: sudo apt-get install -y libasound2-dev libgl-dev libjack-dev libxcb1-dev libxcb-icccm4-dev libxcursor-dev libxkbcommon-dev libxcb-shape0-dev libxcb-xfixes0-dev - uses: actions/cache@v2 + # FIXME: Caching `target/` causes the Windows runner to blow up after some time + if: startsWith(matrix.os, 'windows') with: - # FIXME: Caching `target/` causes the Windows runner to blow up after some time - if: startsWith(matrix.os, 'windows') path: | ~/.cargo/registry/index/ ~/.cargo/registry/cache/ ~/.cargo/git/db/ key: ${{ matrix.name }}-${{ matrix.cross-target }} - uses: actions/cache@v2 + if: "!startsWith(matrix.os, 'windows')" with: - if: "!startsWith(matrix.os, 'windows')" path: | ~/.cargo/registry/index/ ~/.cargo/registry/cache/ diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 848a8119..d8b36902 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -37,17 +37,17 @@ jobs: sudo apt-get install -y libasound2-dev libgl-dev libjack-dev libxcb1-dev libxcb-icccm4-dev libxcursor-dev libxkbcommon-dev libxcb-shape0-dev libxcb-xfixes0-dev - uses: actions/cache@v2 + # FIXME: Caching `target/` causes the Windows runner to blow up after some time + if: startsWith(matrix.os, 'windows') with: - # FIXME: Caching `target/` causes the Windows runner to blow up after some time - if: startsWith(matrix.os, 'windows') path: | ~/.cargo/registry/index/ ~/.cargo/registry/cache/ ~/.cargo/git/db/ key: ${{ matrix.name }}-${{ matrix.cross-target }} - uses: actions/cache@v2 + if: "!startsWith(matrix.os, 'windows')" with: - if: "!startsWith(matrix.os, 'windows')" path: | ~/.cargo/registry/index/ ~/.cargo/registry/cache/