Skip to content

FilmCraft: An open-source, nonlinear video editor written by scratch in pure Rust

CI: build the release test binaries without LTO, allow 120 minutes

FredApps28fcadddd298
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index b53599166..f1331de2b 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -26,11 +26,16 @@ jobs:
gate:
name: cargo xtask ci
runs-on: ubuntu-24.04
- timeout-minutes: 90
+ timeout-minutes: 120
env:
CARGO_TERM_COLOR: always
CARGO_INCREMENTAL: "0"
RUST_BACKTRACE: "1"
+ # `xtask ci` builds clippy and the tests with --release. The release profile (thin LTO, one
+ # codegen unit) is for shipped binaries: on a 4-core runner it makes linking the ~220 test
+ # binaries take over an hour. CI keeps the optimisation level but builds in parallel units.
+ CARGO_PROFILE_RELEASE_LTO: "false"
+ CARGO_PROFILE_RELEASE_CODEGEN_UNITS: "16"
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with: