ci: tune build jobs with caching and disable incremental compilation
@@ -4,6 +4,8 @@ on: [push, pull_request]
env:
RUST_MINVERSION: 1.41.1
+ CARGO_INCREMENTAL: 0
+ CARGO_NET_RETRY: 10
jobs:
test:
@@ -48,6 +50,9 @@ jobs:
profile: minimal
override: true
+ - name: Cache
+ uses: Swatinem/rust-cache@v1
+
- name: Build
uses: actions-rs/cargo@v1
with:
@@ -75,6 +80,9 @@ jobs:
profile: minimal
override: true
+ - name: Cache
+ uses: Swatinem/rust-cache@v1
+
- name: Build
uses: actions-rs/cargo@v1
with:
@@ -96,6 +104,9 @@ jobs:
profile: minimal
override: true
+ - name: Cache
+ uses: Swatinem/rust-cache@v1
+
- name: Compile bench
uses: actions-rs/cargo@v1
with:
@@ -167,6 +178,9 @@ jobs:
profile: minimal
override: true
+ - name: Cache
+ uses: Swatinem/rust-cache@v1
+
- name: Install cargo-tarpaulin
uses: actions-rs/cargo@v1
with:
