Skip to content

Commit 738dd2b

Browse files
committed
Windows CI Cache
1 parent 8072dec commit 738dd2b

File tree

1 file changed

+19
-19
lines changed

1 file changed

+19
-19
lines changed

.github/workflows/main.yml

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -140,25 +140,25 @@ jobs:
140140
steps:
141141
- uses: actions/checkout@v3
142142

143-
#- name: Cache cargo installed crates
144-
# uses: actions/cache@v2
145-
# with:
146-
# path: ~/.cargo/bin
147-
# key: ${{ runner.os }}-cargo-installed-crates
148-
149-
#- name: Cache cargo registry and index
150-
# uses: actions/cache@v2
151-
# with:
152-
# path: |
153-
# ~/.cargo/registry
154-
# ~/.cargo/git
155-
# key: ${{ runner.os }}-cargo-registry-and-index-${{ hashFiles('**/Cargo.lock') }}
156-
157-
#- name: Cache cargo target dir
158-
# uses: actions/cache@v2
159-
# with:
160-
# path: target
161-
# key: ${{ runner.os }}-cargo-build-target-${{ hashFiles('rust-toolchain', '**/Cargo.lock') }}
143+
- name: Cache cargo installed crates
144+
uses: actions/cache@v2
145+
with:
146+
path: ~/.cargo/bin
147+
key: ${{ runner.os }}-${{ matrix.env.TARGET_TRIPLE }}-cargo-installed-crates
148+
149+
- name: Cache cargo registry and index
150+
uses: actions/cache@v2
151+
with:
152+
path: |
153+
~/.cargo/registry
154+
~/.cargo/git
155+
key: ${{ runner.os }}-${{ matrix.env.TARGET_TRIPLE }}-cargo-registry-and-index-${{ hashFiles('**/Cargo.lock') }}
156+
157+
- name: Cache cargo target dir
158+
uses: actions/cache@v2
159+
with:
160+
path: target
161+
key: ${{ runner.os }}-${{ matrix.env.TARGET_TRIPLE }}-cargo-build-target-${{ hashFiles('rust-toolchain', '**/Cargo.lock') }}
162162

163163
- name: Set MinGW as the default toolchain
164164
if: matrix.env.TARGET_TRIPLE == 'x86_64-pc-windows-gnu'

0 commit comments

Comments
 (0)