We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c4551e1 commit 21c4e02Copy full SHA for 21c4e02
.github/workflows/rust.yml
@@ -1,22 +1,29 @@
1
-name: Rust
+name: Build and Test
2
3
on:
4
push:
5
- branches: [ "master" ]
6
- pull_request:
7
8
9
env:
10
CARGO_TERM_COLOR: always
11
12
jobs:
13
build:
14
-
15
runs-on: ubuntu-latest
16
17
steps:
18
- - uses: actions/checkout@v3
19
- - name: Build
20
- run: cargo build --verbose
21
- - name: Run tests
22
- run: cargo test --verbose
+ - uses: actions/checkout@v5
+
+ - name: Cache
+ uses: actions/cache@v4
+ with:
+ path: |
+ ~/.cargo/registry
+ ~/.cargo/git
+ target
23
+ key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
24
25
+ - name: Build
26
+ run: cargo build --verbose
27
28
+ - name: Run tests
29
+ run: cargo test --verbose
0 commit comments