mirror of https://codeberg.org/topola/topola.git
ci: pass `-j4` to cargo to prevent it from taking up all cores at once
This commit is contained in:
parent
ea6df23b95
commit
b1aa6773de
|
|
@ -17,7 +17,7 @@ steps:
|
||||||
CARGO_TERM_COLOR: always
|
CARGO_TERM_COLOR: always
|
||||||
commands:
|
commands:
|
||||||
- rustup default "$CHANNEL"
|
- 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:
|
when:
|
||||||
event: [pull_request, push, tag]
|
event: [pull_request, push, tag]
|
||||||
path:
|
path:
|
||||||
|
|
@ -44,7 +44,7 @@ steps:
|
||||||
CARGO_TERM_COLOR: always
|
CARGO_TERM_COLOR: always
|
||||||
commands:
|
commands:
|
||||||
- rustup default "$CHANNEL"
|
- rustup default "$CHANNEL"
|
||||||
- cargo test --verbose --no-default-features --features "$FEATURES"
|
- cargo test -j4 --verbose --no-default-features --features "$FEATURES"
|
||||||
when:
|
when:
|
||||||
event: [pull_request, push, tag]
|
event: [pull_request, push, tag]
|
||||||
# Only run tests for stable channel to avoid straining Codeberg's CI.
|
# Only run tests for stable channel to avoid straining Codeberg's CI.
|
||||||
|
|
@ -73,7 +73,7 @@ steps:
|
||||||
CARGO_TERM_COLOR: always
|
CARGO_TERM_COLOR: always
|
||||||
commands:
|
commands:
|
||||||
- rustup default "$CHANNEL"
|
- 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:
|
when:
|
||||||
event: [pull_request, push, tag]
|
event: [pull_request, push, tag]
|
||||||
path:
|
path:
|
||||||
|
|
@ -101,7 +101,7 @@ steps:
|
||||||
commands:
|
commands:
|
||||||
- apt-get -y install curl
|
- 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
|
- 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 default "$CHANNEL"
|
||||||
- rustup target add wasm32-unknown-unknown
|
- rustup target add wasm32-unknown-unknown
|
||||||
- trunk build
|
- trunk build
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue