Skip to content

Commit 59a779f

Browse files
committed
Checkout before caching Rust dependencies in CI
Otherwise it fails because it can't find `Cargo.toml`.
1 parent 8fc4f21 commit 59a779f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ jobs:
5454
rustup target add x86_64-unknown-linux-musl
5555
musl-gcc --version
5656
57+
- uses: actions/checkout@v4
58+
5759
- name: Versions
5860
run: |
5961
git version
@@ -62,8 +64,6 @@ jobs:
6264
- name: Cache Rust dependencies
6365
uses: Swatinem/rust-cache@v2
6466

65-
- uses: actions/checkout@v4
66-
6767
- name: Build
6868
run: cargo build --verbose --release --locked ${{ matrix.cargo_extra_flags }}
6969

0 commit comments

Comments
 (0)