diff --git a/.github/workflows/freebsd.yml b/.github/workflows/freebsd.yml index 4edc2fbfdc..17cabf0732 100644 --- a/.github/workflows/freebsd.yml +++ b/.github/workflows/freebsd.yml @@ -34,5 +34,10 @@ jobs: # The test builds of this workspace's largest crates (engine, ui-egui) need more than the # VM's 12 GB when two compile at once: the build was killed (exit 137) every night with # four jobs and again with two. One rustc at a time; it still uses every core. - cargo-build-extra-args: "-j 1" - cargo-test-extra-args: "-j 1" + # One at a time, a cold build of the workspace crates at the dev profile's opt-level 1 took + # 188 minutes of the step's 260 on Dec 1 and did not finish on Dec 2, so the tests never ran + # or ran out of time. The workspace's own crates build at opt-level 0 here (dependencies keep + # the profile's 2), which takes less time and memory; the test command passes the same + # setting so it reuses that build. + cargo-build-extra-args: "-j 1 --config profile.dev.opt-level=0" + cargo-test-extra-args: "-j 1 --config profile.dev.opt-level=0"