From b1aa6773ded6c565bf9619519edb1e147dbe3c99 Mon Sep 17 00:00:00 2001 From: Mikolaj Wielgus Date: Thu, 9 Jan 2025 22:55:27 +0100 Subject: [PATCH] ci: pass `-j4` to cargo to prevent it from taking up all cores at once --- .woodpecker/build_and_test.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.woodpecker/build_and_test.yaml b/.woodpecker/build_and_test.yaml index 4b07991..4b1ce17 100644 --- a/.woodpecker/build_and_test.yaml +++ b/.woodpecker/build_and_test.yaml @@ -17,7 +17,7 @@ steps: CARGO_TERM_COLOR: always commands: - rustup default "$CHANNEL" - - cargo build -p topola-cli --no-default-features --features "$FEATURES" -- + - cargo build -j4 -p topola-cli --no-default-features --features "$FEATURES" -- when: event: [pull_request, push, tag] path: @@ -44,7 +44,7 @@ steps: CARGO_TERM_COLOR: always commands: - rustup default "$CHANNEL" - - cargo test --verbose --no-default-features --features "$FEATURES" + - cargo test -j4 --verbose --no-default-features --features "$FEATURES" when: event: [pull_request, push, tag] # Only run tests for stable channel to avoid straining Codeberg's CI. @@ -73,7 +73,7 @@ steps: CARGO_TERM_COLOR: always commands: - rustup default "$CHANNEL" - - cargo build -p topola-egui --no-default-features --features "$FEATURES,xdg-portal" + - cargo build -j4 -p topola-egui --no-default-features --features "$FEATURES,xdg-portal" when: event: [pull_request, push, tag] path: @@ -101,7 +101,7 @@ steps: commands: - apt-get -y install curl - curl -L --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/cargo-bins/cargo-binstall/main/install-from-binstall-release.sh | bash - - cargo binstall --no-confirm trunk + - cargo binstall -j4 --no-confirm trunk - rustup default "$CHANNEL" - rustup target add wasm32-unknown-unknown - trunk build