88
99env :
1010 CARGO_TERM_COLOR : always
11+ CARGO_INCREMENTAL : 0
12+ CARGO_PROFILE_DEV_DEBUG : 0
13+ CARGO_PROFILE_TEST_DEBUG : 0
14+ RUSTFLAGS : " -C debuginfo=0 -D warnings"
1115
1216jobs :
1317 test :
@@ -18,23 +22,17 @@ jobs:
1822
1923 - uses : ./.github/actions/setup
2024
21- - name : Cache cargo registry
22- uses : actions/cache@v4
25+ - uses : actions/cache@v4
2326 with :
24- path : ~/.cargo/registry
25- key : ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
26-
27- - name : Cache cargo index
28- uses : actions/cache@v4
29- with :
30- path : ~/.cargo/git
31- key : ${{ runner.os }}-cargo-git-${{ hashFiles('**/Cargo.lock') }}
32-
33- - name : Cache target directory
34- uses : actions/cache@v4
35- with :
36- path : target
37- key : ${{ runner.os }}-target-${{ hashFiles('**/Cargo.lock') }}
27+ path : |
28+ ~/.cargo/bin/
29+ ~/.cargo/registry/index/
30+ ~/.cargo/registry/cache/
31+ ~/.cargo/git/db/
32+ target/
33+ key : ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
34+ restore-keys : |
35+ ${{ runner.os }}-cargo-
3836
3937 - name : Run tests
4038 run : cargo test --workspace
@@ -62,26 +60,20 @@ jobs:
6260 with :
6361 components : clippy
6462
65- - name : Cache cargo registry
66- uses : actions/cache@v4
67- with :
68- path : ~/.cargo/registry
69- key : ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
70-
71- - name : Cache cargo index
72- uses : actions/cache@v4
63+ - uses : actions/cache@v4
7364 with :
74- path : ~/.cargo/git
75- key : ${{ runner.os }}-cargo-git-${{ hashFiles('**/Cargo.lock') }}
76-
77- - name : Cache target directory
78- uses : actions/cache@v4
79- with :
80- path : target
81- key : ${{ runner.os }}-clippy-target-${{ hashFiles('**/Cargo.lock') }}
65+ path : |
66+ ~/.cargo/bin/
67+ ~/.cargo/registry/index/
68+ ~/.cargo/registry/cache/
69+ ~/.cargo/git/db/
70+ target/
71+ key : ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
72+ restore-keys : |
73+ ${{ runner.os }}-cargo-
8274
8375 - name : Run clippy
84- run : cargo clippy --workspace -- -D warnings
76+ run : cargo clippy --workspace
8577
8678 build :
8779 name : Build
@@ -91,23 +83,17 @@ jobs:
9183
9284 - uses : ./.github/actions/setup
9385
94- - name : Cache cargo registry
95- uses : actions/cache@v4
96- with :
97- path : ~/.cargo/registry
98- key : ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
99-
100- - name : Cache cargo index
101- uses : actions/cache@v4
102- with :
103- path : ~/.cargo/git
104- key : ${{ runner.os }}-cargo-git-${{ hashFiles('**/Cargo.lock') }}
105-
106- - name : Cache target directory
107- uses : actions/cache@v4
86+ - uses : actions/cache@v4
10887 with :
109- path : target
110- key : ${{ runner.os }}-build-target-${{ hashFiles('**/Cargo.lock') }}
88+ path : |
89+ ~/.cargo/bin/
90+ ~/.cargo/registry/index/
91+ ~/.cargo/registry/cache/
92+ ~/.cargo/git/db/
93+ target/
94+ key : ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
95+ restore-keys : |
96+ ${{ runner.os }}-cargo-
11197
11298 - name : Build
113- run : cargo build --workspace --verbose
99+ run : cargo build --workspace
0 commit comments