Skip to content

Commit 73845c6

Browse files
committed
Disable incremental compilation in CI (#1322)
There's no reason to use Rust's incremental compilation in CI. According to matklad's blog post on [fast Rust builds][fastbuilds]: > CI builds often are closer to from-scratch builds, as changes are > typically much bigger than from a local edit-compile cycle. For > from-scratch builds, incremental adds an extra dependency-tracking > overhead. It also significantly increases the amount of IO and the > size of ./target, which make caching less effective. [fastbuilds]: https://matklad.github.io/2021/09/04/fast-rust-builds.html (cherry picked from commit f7651a3) Signed-off-by: Oliver Gould <ver@buoyant.io>
1 parent af26feb commit 73845c6

File tree

3 files changed

+18
-0
lines changed

3 files changed

+18
-0
lines changed

.github/workflows/advisory.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ name: Advisory
44
on:
55
pull_request: {}
66

7+
env:
8+
CARGO_INCREMENTAL: 0
9+
CARGO_NET_RETRY: 10
10+
RUST_BACKTRACE: short
11+
RUSTUP_MAX_RETRIES: 10
12+
713
jobs:
814
# Prevent sudden announcement of a new advisory from failing Ci.
915
advisories:

.github/workflows/release.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ on:
55
tags:
66
- "release/*"
77

8+
env:
9+
CARGO_INCREMENTAL: 0
10+
CARGO_NET_RETRY: 10
11+
RUST_BACKTRACE: short
12+
RUSTUP_MAX_RETRIES: 10
13+
814
jobs:
915
package:
1016
permissions:

.github/workflows/rust.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@ name: Rust PR
33
on:
44
pull_request: {}
55

6+
env:
7+
CARGO_INCREMENTAL: 0
8+
CARGO_NET_RETRY: 10
9+
RUST_BACKTRACE: short
10+
RUSTUP_MAX_RETRIES: 10
11+
612
jobs:
713

814
## Required builds

0 commit comments

Comments
 (0)