ci: no debug info and two jobs at most, so the test link fits in the runner's memory
Test / cargo test (push) Failing after 3m48s

The test job's linker was killed with signal 9 twice (run 705): cargo test links
several test binaries at once, each with full debug info. CARGO_PROFILE_DEV_DEBUG=0
and CARGO_BUILD_JOBS=2 keep the link within the job's memory; the tests are the
same.
This commit is contained in:
Manielle
2026-10-19 20:45:18 +00:00
parent efba2f2825
commit e14797e57b
+6
View File
@@ -11,6 +11,12 @@ jobs:
rust: rust:
name: cargo test name: cargo test
runs-on: ubuntu-latest runs-on: ubuntu-latest
# The job ran out of memory linking the test binaries (ld killed with
# signal 9, run 705 twice): no debug info, and at most two links at once.
# What is tested does not change.
env:
CARGO_PROFILE_DEV_DEBUG: "0"
CARGO_BUILD_JOBS: "2"
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
# rust-toolchain.toml pins the channel (with clippy); rustup installs it on # rust-toolchain.toml pins the channel (with clippy); rustup installs it on