File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1010 CARGO_TERM_COLOR : always
1111
1212jobs :
13- check :
14- name : Check
13+ build :
14+ name : Build
1515 runs-on : ubuntu-latest
1616 steps :
1717 - uses : actions/checkout@v4
3737 path : target
3838 key : ${{ runner.os }}-cargo-build-target-${{ hashFiles('**/Cargo.lock') }}
3939
40- - name : Run cargo check
41- run : cargo check --all-features
42-
43- test :
44- name : Test
45- runs-on : ubuntu-latest
46- steps :
47- - uses : actions/checkout@v4
48-
49- - name : Install Rust
50- uses : dtolnay/rust-toolchain@stable
51-
52- - name : Cache cargo registry
53- uses : actions/cache@v4
54- with :
55- path : ~/.cargo/registry
56- key : ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
57-
58- - name : Cache cargo index
59- uses : actions/cache@v4
60- with :
61- path : ~/.cargo/git
62- key : ${{ runner.os }}-cargo-index-${{ hashFiles('**/Cargo.lock') }}
63-
64- - name : Cache cargo build
65- uses : actions/cache@v4
66- with :
67- path : target
68- key : ${{ runner.os }}-cargo-build-target-${{ hashFiles('**/Cargo.lock') }}
69-
70- - name : Run tests
71- run : cargo test --lib
72- env :
73- RUST_BACKTRACE : 1
40+ - name : Build
41+ run : cargo build --release
You can’t perform that action at this time.
0 commit comments