Skip to content

Commit efaf706

Browse files
committed
Fix CI caching behaviour.
1 parent 8a4ae6c commit efaf706

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

.github/workflows/ci.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@ jobs:
3535
run: Copy-Item -Path .cargo/config-linux.toml -Destination .cargo/config.toml
3636
- name: Caching
3737
uses: Swatinem/rust-cache@v1
38+
- name: Update dependencies
39+
uses: actions-rs/cargo@v1
40+
with:
41+
command: update
3842
- name: Run Rust unit tests
3943
uses: actions-rs/cargo@v1
4044
with:
@@ -57,8 +61,6 @@ jobs:
5761
toolchain: ${{ matrix.rust }}
5862
override: true
5963
components: rustfmt, clippy
60-
- name: Caching
61-
uses: Swatinem/rust-cache@v1
6264
- name: Format
6365
uses: actions-rs/cargo@v1
6466
with:
@@ -96,6 +98,10 @@ jobs:
9698
run: Copy-Item -Path .cargo/config-linux.toml -Destination .cargo/config.toml
9799
- name: Caching
98100
uses: Swatinem/rust-cache@v1
101+
- name: Update dependencies
102+
uses: actions-rs/cargo@v1
103+
with:
104+
command: update
99105
- name: Build
100106
uses: actions-rs/cargo@v1
101107
with:
@@ -140,6 +146,10 @@ jobs:
140146
override: true
141147
- name: Caching
142148
uses: Swatinem/rust-cache@v1
149+
- name: Update dependencies
150+
uses: actions-rs/cargo@v1
151+
with:
152+
command: update
143153
- name: Download compiled FFI
144154
uses: actions/download-artifact@v2
145155
with:

0 commit comments

Comments
 (0)