Skip to content

Commit 36afeaf

Browse files
committed
ci: Add caching
1 parent 746a7e2 commit 36afeaf

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

.github/workflows/rust.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,14 @@ env:
1212
jobs:
1313
build:
1414

15-
runs-on: ubuntu-latest
15+
runs-on: ubicloud-standard-2
1616

1717
steps:
1818
- uses: actions/checkout@v3
19+
- uses: Swatinem/rust-cache@v2
20+
with:
21+
cache-on-failure: "true"
22+
add-job-id-key: "false"
1923
- name: Build
2024
run: cargo build --verbose
2125
- name: Run tests
@@ -24,10 +28,14 @@ jobs:
2428

2529
clippy_check:
2630

27-
runs-on: ubuntu-latest
28-
31+
runs-on: ubicloud-standard-2
32+
2933
steps:
3034
- uses: actions/checkout@v3
35+
- uses: Swatinem/rust-cache@v2
36+
with:
37+
cache-on-failure: "true"
38+
add-job-id-key: "false"
3139
- uses: actions-rs/toolchain@v1
3240
with:
3341
toolchain: stable

0 commit comments

Comments
 (0)