remove now-unnecessary memory-based parallelism limiting
Some checks are pending
/ test (push) Has started running

This commit is contained in:
Jacob Lifshay 2024-10-15 23:51:41 -07:00
parent a305ad51b2
commit e5f59939cc
Signed by: programmerjake
SSH key fingerprint: SHA256:B1iRVvUJkvd7upMIiMqn6OyxvD2SgJkAH3ZnUOj6z+c

View file

@ -70,12 +70,4 @@ jobs:
- uses: https://github.com/Swatinem/rust-cache@v2 - uses: https://github.com/Swatinem/rust-cache@v2
with: with:
save-if: ${{ github.ref == 'refs/heads/master' }} save-if: ${{ github.ref == 'refs/heads/master' }}
- run: | - run: cargo test
avail_mem="$(free -b | awk '/^Mem:/{print($2)}')"
# estimate that each test needs 16GiB
((par_from_mem = avail_mem / (16 << 30)))
par="$(nproc)"
if ((par_from_mem > 0 && par > par_from_mem)); then
par="$par_from_mem"
fi
cargo test -- --test-threads="$par"