|
38 | 38 | - if: ${{ runner.os == 'Linux' }} |
39 | 39 | name: Linux - Install native dependencies |
40 | 40 | run: sudo apt install libwayland-cursor0 libxkbcommon-dev libwayland-dev |
| 41 | + - uses: Swatinem/rust-cache@v2 |
| 42 | + with: |
| 43 | + workspaces: | |
| 44 | + . |
| 45 | + tests/difftests/tests |
41 | 46 | # just need a random command that forces the installation of rust-toolchain |
42 | 47 | # figure out native target triple while we're at it |
43 | 48 | - name: install rust-toolchain |
@@ -96,6 +101,11 @@ jobs: |
96 | 101 | install_runtime: true |
97 | 102 | cache: true |
98 | 103 | stripdown: true |
| 104 | + - uses: Swatinem/rust-cache@v2 |
| 105 | + with: |
| 106 | + workspaces: | |
| 107 | + . |
| 108 | + tests/difftests/tests |
99 | 109 | - name: install rust-toolchain |
100 | 110 | run: cargo version |
101 | 111 | - name: cargo fetch --locked |
@@ -140,6 +150,11 @@ jobs: |
140 | 150 | install_runtime: true |
141 | 151 | cache: true |
142 | 152 | stripdown: true |
| 153 | + - uses: Swatinem/rust-cache@v2 |
| 154 | + with: |
| 155 | + workspaces: | |
| 156 | + . |
| 157 | + tests/difftests/tests |
143 | 158 | - name: install rust-toolchain |
144 | 159 | run: echo "TARGET=$(rustc --print host-tuple)" >> "$GITHUB_ENV" |
145 | 160 | - name: cargo fetch --locked |
@@ -175,6 +190,11 @@ jobs: |
175 | 190 | sudo add-apt-repository ppa:kisak/turtle -y |
176 | 191 | sudo apt-get update |
177 | 192 | sudo apt install -y xvfb libgl1-mesa-dri libxcb-xfixes0-dev mesa-vulkan-drivers |
| 193 | + - uses: Swatinem/rust-cache@v2 |
| 194 | + with: |
| 195 | + workspaces: | |
| 196 | + . |
| 197 | + tests/difftests/tests |
178 | 198 | - name: install rust-toolchain |
179 | 199 | run: echo "TARGET=$(rustc --print host-tuple)" >> "$GITHUB_ENV" |
180 | 200 | - name: cargo fetch --locked |
@@ -223,6 +243,11 @@ jobs: |
223 | 243 | install_runtime: true |
224 | 244 | cache: true |
225 | 245 | stripdown: true |
| 246 | + - uses: Swatinem/rust-cache@v2 |
| 247 | + with: |
| 248 | + workspaces: | |
| 249 | + . |
| 250 | + tests/difftests/tests |
226 | 251 | # cargo version is a random command that forces the installation of rust-toolchain |
227 | 252 | - name: install rust-toolchain |
228 | 253 | run: cargo version |
|
0 commit comments