Skip to content

Commit 26e42de

Browse files
committed
Make citool compilation faster
1 parent ac951d3 commit 26e42de

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

.github/workflows/ci.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ jobs:
5858
COMMIT_MESSAGE: ${{ github.event.head_commit.message }}
5959
run: |
6060
cd src/ci/citool
61-
cargo test
62-
cargo run calculate-job-matrix >> $GITHUB_OUTPUT
61+
CARGO_INCREMENTAL=0 cargo test
62+
CARGO_INCREMENTAL=0 cargo run calculate-job-matrix >> $GITHUB_OUTPUT
6363
id: jobs
6464
job:
6565
name: ${{ matrix.full_name }}
@@ -187,7 +187,7 @@ jobs:
187187
- name: build citool
188188
run: |
189189
cd src/ci/citool
190-
CARGO_TARGET_DIR=../../../build/citool cargo build
190+
CARGO_INCREMENTAL=0 CARGO_TARGET_DIR=../../../build/citool cargo build
191191
192192
- name: run the build
193193
# Redirect stderr to stdout to avoid reordering the two streams in the GHA logs.

src/ci/citool/Cargo.toml

+4
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,7 @@ insta = "1"
1919
# If this is omitted, cargo will look for a workspace elsewhere.
2020
# We want to avoid this, since citool is independent of the other crates.
2121
[workspace]
22+
23+
# Make compilation faster
24+
[profile.dev]
25+
debug = 0

0 commit comments

Comments
 (0)