Skip to content

Commit a6587e5

Browse files
committed
CI: Speed up test-driver-rust build
On my machine more than a minute is spent on running build.rs for test-driver-rust generating slint code for all the .slint files, as the build-time feature is enabled. This patch builds the build script with optimizations, to reduce the time spent on generating code. On my machine that cuts it down to ~30 seconds.
1 parent dfbcbda commit a6587e5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/build_and_test_reusable.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ jobs:
4949
QT_QPA_PLATFORM: offscreen
5050
RUSTFLAGS: -D warnings
5151
CARGO_PROFILE_DEV_DEBUG: 0
52+
# Build slint-compiler in release to make test-driver-rust's build-time feature build faster.
53+
CARGO_PROFILE_DEV_BUILD_OVERRIDE_OPT_LEVEL: 3
5254
CARGO_INCREMENTAL: false
5355
RUST_BACKTRACE: 1
5456
SLINT_EMIT_DEBUG_INFO: 1

0 commit comments

Comments
 (0)