@@ -115,6 +115,8 @@ jobs:
115
115
target : ${{ matrix.target }}
116
116
117
117
- uses : Swatinem/rust-cache@359a70e43a0bb8a13953b04a90f76428b4959bb6 # v2.2.0
118
+ with :
119
+ save-if : ${{ github.ref == 'refs/heads/master' }}
118
120
119
121
- run : cargo check --package libp2p --all-features --target=${{ matrix.target }}
120
122
@@ -141,6 +143,8 @@ jobs:
141
143
override : true
142
144
143
145
- uses : Swatinem/rust-cache@359a70e43a0bb8a13953b04a90f76428b4959bb6 # v2.2.0
146
+ with :
147
+ save-if : ${{ github.ref == 'refs/heads/master' }}
144
148
145
149
- run : cargo check --package libp2p --features="${{ matrix.features }}"
146
150
@@ -162,6 +166,8 @@ jobs:
162
166
override : true
163
167
164
168
- uses : Swatinem/rust-cache@359a70e43a0bb8a13953b04a90f76428b4959bb6 # v2.2.0
169
+ with :
170
+ save-if : ${{ github.ref == 'refs/heads/master' }}
165
171
166
172
- name : Check rustdoc links
167
173
run : RUSTDOCFLAGS="--deny rustdoc::broken_intra_doc_links --deny warnings" cargo doc --verbose --workspace --no-deps --all-features --document-private-items
@@ -191,6 +197,8 @@ jobs:
191
197
components : clippy
192
198
193
199
- uses : Swatinem/rust-cache@359a70e43a0bb8a13953b04a90f76428b4959bb6 # v2.2.0
200
+ with :
201
+ save-if : ${{ github.ref == 'refs/heads/master' }}
194
202
195
203
- name : Run cargo clippy
196
204
uses : actions-rs/cargo@844f36862e911db73fe0815f00a4a2602c279505 # v1.0.3
@@ -215,6 +223,8 @@ jobs:
215
223
override : true
216
224
217
225
- uses : Swatinem/rust-cache@359a70e43a0bb8a13953b04a90f76428b4959bb6 # v2.2.0
226
+ with :
227
+ save-if : ${{ github.ref == 'refs/heads/master' }}
218
228
219
229
- name : Run ipfs-kad example
220
230
run : RUST_LOG=libp2p_swarm=debug,libp2p_kad=trace,libp2p_tcp=debug cargo run --example ipfs-kad --features full
0 commit comments