File tree Expand file tree Collapse file tree 1 file changed +1
-24
lines changed Expand file tree Collapse file tree 1 file changed +1
-24
lines changed Original file line number Diff line number Diff line change 10
10
runs-on : ubuntu-latest
11
11
steps :
12
12
- uses : actions/checkout@v4
13
- - name : Cache cargo build
14
- uses : actions/cache@v4
15
- with :
16
- path : |
17
- ~/.cargo/registry
18
- ~/.cargo/git
19
- target
20
- key : ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock', '**/*.rs', '**/Cargo.toml') }}
21
- - name : Cache cargo binaries
22
- uses : actions/cache@v4
23
- with :
24
- path : ~/.cargo/bin
25
- key : cargo-bin-${{ runner.os }}-v1
26
- - name : Install cargo-sort if needed
27
- run : |
28
- if ! command -v cargo-sort &> /dev/null; then
29
- echo "Installing cargo-sort..."
30
- cargo install cargo-sort
31
- else
32
- echo "cargo-sort already installed from cache."
33
- fi
34
- - name : cargo sort
35
- run : cargo sort --check
36
13
- name : Build
37
- run : cargo build --features "serde"
14
+ run : cargo build
38
15
- name : Run tests
39
16
run : cargo test -- --test-threads=1
40
17
- name : fmt
You can’t perform that action at this time.
0 commit comments