Cache target/ on non-Windows platforms
This commit is contained in:
parent
e6c43e35d3
commit
2948c2589d
3 changed files with 30 additions and 0 deletions
10
.github/workflows/build.yml
vendored
10
.github/workflows/build.yml
vendored
|
@ -42,11 +42,21 @@ jobs:
|
||||||
- uses: actions/cache@v2
|
- uses: actions/cache@v2
|
||||||
with:
|
with:
|
||||||
# FIXME: Caching `target/` causes the Windows runner to blow up after some time
|
# FIXME: Caching `target/` causes the Windows runner to blow up after some time
|
||||||
|
if: startsWith(matrix.os, 'windows')
|
||||||
path: |
|
path: |
|
||||||
~/.cargo/registry/index/
|
~/.cargo/registry/index/
|
||||||
~/.cargo/registry/cache/
|
~/.cargo/registry/cache/
|
||||||
~/.cargo/git/db/
|
~/.cargo/git/db/
|
||||||
key: ${{ runner.name }}-${{ matrix.cross-target }}
|
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
|
- name: Set up Rust toolchain
|
||||||
uses: actions-rs/toolchain@v1
|
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
|
- uses: actions/cache@v2
|
||||||
with:
|
with:
|
||||||
# FIXME: Caching `target/` causes the Windows runner to blow up after some time
|
# FIXME: Caching `target/` causes the Windows runner to blow up after some time
|
||||||
|
if: startsWith(matrix.os, 'windows')
|
||||||
path: |
|
path: |
|
||||||
~/.cargo/registry/index/
|
~/.cargo/registry/index/
|
||||||
~/.cargo/registry/cache/
|
~/.cargo/registry/cache/
|
||||||
~/.cargo/git/db/
|
~/.cargo/git/db/
|
||||||
key: ${{ runner.name }}-${{ matrix.cross-target }}
|
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
|
- name: Set up Rust toolchain
|
||||||
uses: actions-rs/toolchain@v1
|
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
|
- uses: actions/cache@v2
|
||||||
with:
|
with:
|
||||||
# FIXME: Caching `target/` causes the Windows runner to blow up after some time
|
# FIXME: Caching `target/` causes the Windows runner to blow up after some time
|
||||||
|
if: startsWith(matrix.os, 'windows')
|
||||||
path: |
|
path: |
|
||||||
~/.cargo/registry/index/
|
~/.cargo/registry/index/
|
||||||
~/.cargo/registry/cache/
|
~/.cargo/registry/cache/
|
||||||
~/.cargo/git/db/
|
~/.cargo/git/db/
|
||||||
key: ${{ runner.name }}-${{ matrix.cross-target }}
|
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
|
- name: Set up Rust toolchain
|
||||||
uses: actions-rs/toolchain@v1
|
uses: actions-rs/toolchain@v1
|
||||||
|
|
Loading…
Add table
Reference in a new issue