Fix conditional caching on Windows CI runners
Oops.
This commit is contained in:
parent
15ce644dec
commit
c92c2a189b
6
.github/workflows/build.yml
vendored
6
.github/workflows/build.yml
vendored
|
@ -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/
|
||||
|
|
6
.github/workflows/docs.yml
vendored
6
.github/workflows/docs.yml
vendored
|
@ -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/
|
||||
|
|
6
.github/workflows/test.yml
vendored
6
.github/workflows/test.yml
vendored
|
@ -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/
|
||||
|
|
Loading…
Reference in a new issue