ci: move more -j4s to justfile

This commit is contained in:
🪞👃🪞 2025-01-28 02:28:36 +01:00
parent efdf17f11d
commit 10f8fcc84b
2 changed files with 4 additions and 2 deletions

View file

@ -7,5 +7,5 @@ jobs:
- run: nix-channel --list && nix-channel --update
- run: nix-shell --cores 4 -p git --command 'git clone --recursive $GITHUB_SERVER_URL/$GITHUB_REPOSITORY .'
- run: whoami && pwd && ls -al
- run: nix-shell --cores 4 --command 'cloc src/ && cloc . && rustup install nightly && cargo version -vv && just cov && cargo doc -j4 && cargo build -j4 --release' .forgejo/workflows/build.nix
- run: nix-shell --cores 4 --command 'cloc src/ && cloc . && rustup install nightly && cargo version -vv && just cov && just doc && just build-release' .forgejo/workflows/build.nix
#- run: nix-shell -p docker --command "docker run --security-opt seccomp=unconfined -v $PWD:/volume xd009642/tarpaulin cargo tarpaulin --out Html --all-features"

View file

@ -20,7 +20,7 @@ test:
prof:
CARGO_PROFILE_RELEASE_DEBUG=true cargo flamegraph -- arranger
doc:
cargo doc --workspace --document-private-items
cargo doc -j4 --workspace --document-private-items
covfig := "CARGO_INCREMENTAL=0 RUSTFLAGS='-Cinstrument-coverage' RUSTDOCFLAGS='-Cinstrument-coverage' LLVM_PROFILE_FILE='cov/cargo-test-%p-%m.profraw'"
cov:
rm -rf target/coverage/html || true
@ -45,6 +45,8 @@ run:
{{debug}}
release:
{{release}}
build-release:
time cargo build -j4 --release
clock:
{{debug}} {{name}} {{bpm}} clock