From a4c1616f3bada4ee4a68c34d8b5db089c73bbe79 Mon Sep 17 00:00:00 2001 From: hanabi1224 Date: Thu, 5 Feb 2026 09:12:43 +0800 Subject: [PATCH 1/3] fix(ci): set CARGO_BUILD_JOBS=1 for unit tests --- .github/workflows/unit-tests.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index 78e45d25b9a0..ecf693e3d50e 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -35,6 +35,8 @@ env: RUSTC_WRAPPER: "sccache" CC: "sccache clang" CXX: "sccache clang++" + # To minimize compile times: https://nnethercote.github.io/perf-book/build-configuration.html#minimizing-compile-times + RUSTFLAGS: "-C linker=clang -C link-arg=-fuse-ld=lld" FIL_PROOFS_PARAMETER_CACHE: /var/tmp/filecoin-proof-parameters RUST_LOG: error FOREST_ACTOR_BUNDLE_PATH: /var/tmp/forest_actor_bundle.car.zst @@ -77,6 +79,5 @@ jobs: - run: | mise test quick env: - # To minimize compile times: https://nnethercote.github.io/perf-book/build-configuration.html#minimizing-compile-times - RUSTFLAGS: "-C linker=clang -C link-arg=-fuse-ld=lld" FOREST_TEST_SKIP_PROOF_PARAM_CHECK: 1 + CARGO_BUILD_JOBS: 1 From bb6d5d751774675c3e7429ae9e73dafe54d37003 Mon Sep 17 00:00:00 2001 From: hanabi1224 Date: Thu, 5 Feb 2026 17:35:02 +0800 Subject: [PATCH 2/3] set CARGO_BUILD_JOBS=3 --- .github/workflows/unit-tests.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index ecf693e3d50e..64aa5cb59238 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -80,4 +80,5 @@ jobs: mise test quick env: FOREST_TEST_SKIP_PROOF_PARAM_CHECK: 1 - CARGO_BUILD_JOBS: 1 + # https://docs.github.com/en/actions/reference/runners/github-hosted-runners#standard-github-hosted-runners-for-public-repositories + CARGO_BUILD_JOBS: 3 From 5e87886f95368cd4f48e967af1a2311e361ea82f Mon Sep 17 00:00:00 2001 From: hanabi1224 Date: Thu, 5 Feb 2026 18:06:32 +0800 Subject: [PATCH 3/3] try CARGO_BUILD_JOBS=2 --- .github/workflows/unit-tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index 64aa5cb59238..26f316987f40 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -81,4 +81,4 @@ jobs: env: FOREST_TEST_SKIP_PROOF_PARAM_CHECK: 1 # https://docs.github.com/en/actions/reference/runners/github-hosted-runners#standard-github-hosted-runners-for-public-repositories - CARGO_BUILD_JOBS: 3 + CARGO_BUILD_JOBS: 2