mirror of
https://github.com/robbert-vdh/nih-plug.git
synced 2026-07-01 10:46:55 +00:00
Cache target/ on non-Windows platforms
This commit is contained in:
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
|
||||
|
||||
Reference in New Issue
Block a user