File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66 pull_request :
77 branches : [ main, master, develop ]
88
9+ env :
10+ CARGO_TERM_COLOR : always
11+
912jobs :
1013 build :
1114 name : Build
1215 runs-on : ubuntu-latest
1316 steps :
1417 - uses : actions/checkout@v4
18+
1519 - name : Install Rust
1620 uses : dtolnay/rust-toolchain@stable
21+
22+ - name : Cache cargo registry
23+ uses : actions/cache@v4
24+ with :
25+ path : ~/.cargo/registry
26+ key : ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
27+
28+ - name : Cache cargo index
29+ uses : actions/cache@v4
30+ with :
31+ path : ~/.cargo/git
32+ key : ${{ runner.os }}-cargo-index-${{ hashFiles('**/Cargo.lock') }}
33+
34+ - name : Cache cargo build
35+ uses : actions/cache@v4
36+ with :
37+ path : target
38+ key : ${{ runner.os }}-cargo-build-target-${{ hashFiles('**/Cargo.lock') }}
39+
1740 - name : Build
18- run : cargo build --release
41+ run : cargo build --release 2>&1 | head -100
You can’t perform that action at this time.
0 commit comments