Cache target/ on non-Windows platforms
This commit is contained in:
parent
e6c43e35d3
commit
2948c2589d
10
.github/workflows/build.yml
vendored
10
.github/workflows/build.yml
vendored
|
@ -42,11 +42,21 @@ jobs:
|
|||
- uses: actions/cache@v2
|
||||
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: ${{ runner.name }}-${{ matrix.cross-target }}
|
||||
- uses: actions/cache@v2
|
||||
with:
|
||||
if: "!startsWith(matrix.os, 'windows')"
|
||||
path: |
|
||||
~/.cargo/registry/index/
|
||||
~/.cargo/registry/cache/
|
||||
~/.cargo/git/db/
|
||||
target/
|
||||
key: ${{ runner.name }}-${{ matrix.cross-target }}
|
||||
|
||||
- name: Set up Rust toolchain
|
||||
uses: actions-rs/toolchain@v1
|
||||
|
|
10
.github/workflows/docs.yml
vendored
10
.github/workflows/docs.yml
vendored
|
@ -28,11 +28,21 @@ jobs:
|
|||
- uses: actions/cache@v2
|
||||
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: ${{ runner.name }}-${{ matrix.cross-target }}
|
||||
- uses: actions/cache@v2
|
||||
with:
|
||||
if: "!startsWith(matrix.os, 'windows')"
|
||||
path: |
|
||||
~/.cargo/registry/index/
|
||||
~/.cargo/registry/cache/
|
||||
~/.cargo/git/db/
|
||||
target/
|
||||
key: ${{ runner.name }}-${{ matrix.cross-target }}
|
||||
|
||||
- name: Set up Rust toolchain
|
||||
uses: actions-rs/toolchain@v1
|
||||
|
|
10
.github/workflows/test.yml
vendored
10
.github/workflows/test.yml
vendored
|
@ -39,11 +39,21 @@ jobs:
|
|||
- uses: actions/cache@v2
|
||||
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: ${{ runner.name }}-${{ matrix.cross-target }}
|
||||
- uses: actions/cache@v2
|
||||
with:
|
||||
if: "!startsWith(matrix.os, 'windows')"
|
||||
path: |
|
||||
~/.cargo/registry/index/
|
||||
~/.cargo/registry/cache/
|
||||
~/.cargo/git/db/
|
||||
target/
|
||||
key: ${{ runner.name }}-${{ matrix.cross-target }}
|
||||
|
||||
- name: Set up Rust toolchain
|
||||
uses: actions-rs/toolchain@v1
|
||||
|
|
Loading…
Reference in a new issue