Skip to content

Commit 79a2ef1

Browse files
committed
ci: pin Rust 1.93.0 and use rust-cache in test build
1 parent 40a8f89 commit 79a2ef1

1 file changed

Lines changed: 5 additions & 10 deletions

File tree

.github/workflows/test-build.yml

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ jobs:
6262
6363
- name: Install Rust
6464
uses: dtolnay/rust-toolchain@stable
65+
with:
66+
toolchain: 1.93.0
6567

6668
- name: Add musl target
6769
run: rustup target add x86_64-unknown-linux-musl
@@ -72,17 +74,10 @@ jobs:
7274
sudo apt-get install -y musl-tools
7375
7476
- name: Cache Rust dependencies
75-
uses: actions/cache@v4
77+
uses: Swatinem/rust-cache@v2
7678
with:
77-
path: |
78-
~/.cargo/bin/
79-
~/.cargo/registry/index/
80-
~/.cargo/registry/cache/
81-
~/.cargo/git/db/
82-
anycode-backend/target/
83-
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
84-
restore-keys: |
85-
${{ runner.os }}-cargo-
79+
workspaces: |
80+
anycode-backend -> target
8681
8782
- name: Build Linux x86_64 musl binary (test)
8883
working-directory: ./anycode-backend

0 commit comments

Comments
 (0)