From a37e6951a5beaeed4a5e3426c1e552d6e3597071 Mon Sep 17 00:00:00 2001 From: Robert Kruszewski Date: Fri, 23 Oct 2026 14:55:11 +0100 Subject: [PATCH] ci: partition cargo-hack feature builds across small runners Signed-off-by: Robert Kruszewski --- .github/workflows/ci.yml | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 25c6243459b..83211c14083 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -320,12 +320,19 @@ jobs: fail-fast: false matrix: config: - - name: "all-features" - runner: amd64-ci-large - args: "--all-features --all-targets" - - name: "default features" - runner: amd64-ci-large - args: "--all-targets" + # cargo-hack builds crates serially; partition the two workspace-wide builds. + - name: "all-features partition 1 of 2" + runner: amd64-ci-small + args: "--all-features --all-targets --partition 1/2" + - name: "all-features partition 2 of 2" + runner: amd64-ci-small + args: "--all-features --all-targets --partition 2/2" + - name: "default features partition 1 of 2" + runner: amd64-ci-small + args: "--all-targets --partition 1/2" + - name: "default features partition 2 of 2" + runner: amd64-ci-small + args: "--all-targets --partition 2/2" - name: "with tokio dispatcher" runner: amd64-ci-medium # Only build the crates that have the tokio features, not re-building other crates with no-default-features