Skip to content

Commit 280222f

Browse files
committed
chore: 添加cache加速
1 parent f229b9f commit 280222f

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/build-and-release.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,10 @@ jobs:
5252
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
5353
- name: Checkout
5454
uses: actions/checkout@v4
55-
55+
56+
- name: Cache cargo artifacts
57+
uses: Swatinem/rust-cache@v2
58+
5659
- name: Prepare env
5760
uses: actions-rs/toolchain@v1
5861
with:
@@ -119,6 +122,9 @@ jobs:
119122
- name: Checkout
120123
uses: actions/checkout@v4
121124

125+
- name: Cache cargo artifacts
126+
uses: Swatinem/rust-cache@v2
127+
122128
- name: Setup Rust
123129
uses: actions-rs/toolchain@v1
124130
with:

0 commit comments

Comments
 (0)