Windows CI Cache
This commit is contained in:
parent
8072dec7a5
commit
738dd2b70b
34
.github/workflows/main.yml
vendored
34
.github/workflows/main.yml
vendored
@ -140,25 +140,25 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
#- name: Cache cargo installed crates
|
- name: Cache cargo installed crates
|
||||||
# uses: actions/cache@v2
|
uses: actions/cache@v2
|
||||||
# with:
|
with:
|
||||||
# path: ~/.cargo/bin
|
path: ~/.cargo/bin
|
||||||
# key: ${{ runner.os }}-cargo-installed-crates
|
key: ${{ runner.os }}-${{ matrix.env.TARGET_TRIPLE }}-cargo-installed-crates
|
||||||
|
|
||||||
#- name: Cache cargo registry and index
|
- name: Cache cargo registry and index
|
||||||
# uses: actions/cache@v2
|
uses: actions/cache@v2
|
||||||
# with:
|
with:
|
||||||
# path: |
|
path: |
|
||||||
# ~/.cargo/registry
|
~/.cargo/registry
|
||||||
# ~/.cargo/git
|
~/.cargo/git
|
||||||
# key: ${{ runner.os }}-cargo-registry-and-index-${{ hashFiles('**/Cargo.lock') }}
|
key: ${{ runner.os }}-${{ matrix.env.TARGET_TRIPLE }}-cargo-registry-and-index-${{ hashFiles('**/Cargo.lock') }}
|
||||||
|
|
||||||
#- name: Cache cargo target dir
|
- name: Cache cargo target dir
|
||||||
# uses: actions/cache@v2
|
uses: actions/cache@v2
|
||||||
# with:
|
with:
|
||||||
# path: target
|
path: target
|
||||||
# key: ${{ runner.os }}-cargo-build-target-${{ hashFiles('rust-toolchain', '**/Cargo.lock') }}
|
key: ${{ runner.os }}-${{ matrix.env.TARGET_TRIPLE }}-cargo-build-target-${{ hashFiles('rust-toolchain', '**/Cargo.lock') }}
|
||||||
|
|
||||||
- name: Set MinGW as the default toolchain
|
- name: Set MinGW as the default toolchain
|
||||||
if: matrix.env.TARGET_TRIPLE == 'x86_64-pc-windows-gnu'
|
if: matrix.env.TARGET_TRIPLE == 'x86_64-pc-windows-gnu'
|
||||||
|
Loading…
Reference in New Issue
Block a user