Skip to content

Commit 8f6c971

Browse files
committed
【维护】优化 Rust 项目构建流程
- 添加 Rust 依赖缓存步骤,提高构建效率 - 移除 .gitignore 中的 Cargo.lock 文件
1 parent 0b6b353 commit 8f6c971

5 files changed

Lines changed: 2558 additions & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,12 @@ jobs:
5050
if: steps.version-check.outputs.version != '0'
5151
uses: MatteoH2O1999/setup-rust@v1
5252

53+
- name: Cache Rust dependencies
54+
if: steps.version-check.outputs.version != '0'
55+
uses: Swatinem/rust-cache@v2
56+
with:
57+
cache-on-failure: "true"
58+
5359
- name: Build project
5460
if: steps.version-check.outputs.version != '0'
5561
run: cargo build --release

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
/target
2-
/Cargo.lock
32

43
index.min.html
54
index.allinone.html

0 commit comments

Comments
 (0)