From 2ffcf1b95affb9447735a9492a6a21b5848b9fd9 Mon Sep 17 00:00:00 2001 From: Georgios Jason Efstathiou Date: Tue, 6 Oct 2026 11:36:43 +0200 Subject: [PATCH] ryph: warm the cargo build in image builds only At run time the warm steps rebuilt the crates with build scripts on every start, which took about two minutes. Cargo now builds only what a command needs, when it runs. --- .ryph/setup.yml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/.ryph/setup.yml b/.ryph/setup.yml index 9a8fe2546..3bd3c8bf7 100644 --- a/.ryph/setup.yml +++ b/.ryph/setup.yml @@ -12,12 +12,14 @@ steps: run: npx playwright install webkit - name: install the pinned Radicle binaries for e2e tests run: scripts/install-binaries - - name: warm clippy (scripts/check-rs) - run: mkdir -p build && cargo clippy --workspace --all-targets --locked - - name: warm cargo test (scripts/check-rs) - run: cargo test --workspace --no-run --locked - - name: warm the e2e backend (tests/support/globalSetup.ts) - run: cargo build --manifest-path ./crates/test-http-api/Cargo.toml --locked && cargo build -p radicle-job --bin rad-job --locked + # The cargo warm steps only fill the image's target/. At run time cargo + # builds what a command needs when it runs. + - name: warm clippy (scripts/check-rs, image builds only) + run: 'mkdir -p build && { [ "$RYPH_SETUP_PHASE" != image ] || cargo clippy --workspace --all-targets --locked; }' + - name: warm cargo test (scripts/check-rs, image builds only) + run: '[ "$RYPH_SETUP_PHASE" != image ] || cargo test --workspace --no-run --locked' + - name: warm the e2e backend (tests/support/globalSetup.ts, image builds only) + run: '[ "$RYPH_SETUP_PHASE" != image ] || { cargo build --manifest-path ./crates/test-http-api/Cargo.toml --locked && cargo build -p radicle-job --bin rad-job --locked; }' # rustc's incremental cache only speeds up rebuilding this repo's own # crates after an edit, and it is gigabytes. Image builds only. - name: drop the incremental cache (image builds only)