Skip to content

Commit 0ec52d2

Browse files
committed
Add cache to workflow
1 parent 0c2e13b commit 0ec52d2

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

.github/workflows/rust.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,13 @@ env:
1111

1212
jobs:
1313
build:
14-
1514
runs-on: ubuntu-latest
16-
timeout-minutes: 30
15+
timeout-minutes: 60
1716

1817
steps:
1918
- uses: actions/checkout@v3
20-
# - name: Cache Rust dependencies
21-
# uses: Swatinem/rust-cache@v2
19+
- name: Cache Rust dependencies
20+
uses: Swatinem/rust-cache@v2
2221
- name: Install Rust
2322
uses: dtolnay/rust-toolchain@stable
2423
with:
@@ -28,12 +27,9 @@ jobs:
2827
- name: Run tests
2928
run: cargo test --verbose
3029

31-
3230
rustfmt:
3331
name: rustfmt
34-
3532
runs-on: ubuntu-latest
36-
3733
steps:
3834
- name: Checkout repository
3935
uses: actions/checkout@v3
@@ -44,4 +40,4 @@ jobs:
4440
components: rustfmt
4541
- name: Check formatting
4642
run: |
47-
cargo fmt --all -- --check
43+
cargo fmt --all -- --check

0 commit comments

Comments
 (0)