about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAfonso Bordado <afonsobordado@az8.co>2022-09-27 07:26:12 +0100
committerAfonso Bordado <afonsobordado@az8.co>2022-09-27 07:26:12 +0100
commit738dd2b70b6ab8366ae4620e5c0597c209e0235c (patch)
tree8cbdfa826409d2489a560d11884aa3c9b74a84dd
parent8072dec7a5f75861fc152310eb1bd6f171103835 (diff)
downloadrust-738dd2b70b6ab8366ae4620e5c0597c209e0235c.tar.gz
rust-738dd2b70b6ab8366ae4620e5c0597c209e0235c.zip
Windows CI Cache
-rw-r--r--.github/workflows/main.yml38
1 files changed, 19 insertions, 19 deletions
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index 91240cca8b4..2d63881b7ab 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -140,25 +140,25 @@ jobs:
     steps:
     - uses: actions/checkout@v3
 
-    #- name: Cache cargo installed crates
-    #  uses: actions/cache@v2
-    #  with:
-    #    path: ~/.cargo/bin
-    #    key: ${{ runner.os }}-cargo-installed-crates
-
-    #- name: Cache cargo registry and index
-    #  uses: actions/cache@v2
-    #  with:
-    #    path: |
-    #        ~/.cargo/registry
-    #        ~/.cargo/git
-    #    key: ${{ runner.os }}-cargo-registry-and-index-${{ hashFiles('**/Cargo.lock') }}
-
-    #- name: Cache cargo target dir
-    #  uses: actions/cache@v2
-    #  with:
-    #    path: target
-    #    key: ${{ runner.os }}-cargo-build-target-${{ hashFiles('rust-toolchain', '**/Cargo.lock') }}
+    - name: Cache cargo installed crates
+      uses: actions/cache@v2
+      with:
+        path: ~/.cargo/bin
+        key: ${{ runner.os }}-${{ matrix.env.TARGET_TRIPLE }}-cargo-installed-crates
+
+    - name: Cache cargo registry and index
+      uses: actions/cache@v2
+      with:
+        path: |
+            ~/.cargo/registry
+            ~/.cargo/git
+        key: ${{ runner.os }}-${{ matrix.env.TARGET_TRIPLE }}-cargo-registry-and-index-${{ hashFiles('**/Cargo.lock') }}
+
+    - name: Cache cargo target dir
+      uses: actions/cache@v2
+      with:
+        path: target
+        key: ${{ runner.os }}-${{ matrix.env.TARGET_TRIPLE }}-cargo-build-target-${{ hashFiles('rust-toolchain', '**/Cargo.lock') }}
 
     - name: Set MinGW as the default toolchain
       if: matrix.env.TARGET_TRIPLE == 'x86_64-pc-windows-gnu'