mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-07 12:16:42 +01:00
ci: move more -j4s to justfile
This commit is contained in:
parent
efdf17f11d
commit
10f8fcc84b
2 changed files with 4 additions and 2 deletions
|
|
@ -7,5 +7,5 @@ jobs:
|
||||||
- run: nix-channel --list && nix-channel --update
|
- run: nix-channel --list && nix-channel --update
|
||||||
- run: nix-shell --cores 4 -p git --command 'git clone --recursive $GITHUB_SERVER_URL/$GITHUB_REPOSITORY .'
|
- run: nix-shell --cores 4 -p git --command 'git clone --recursive $GITHUB_SERVER_URL/$GITHUB_REPOSITORY .'
|
||||||
- run: whoami && pwd && ls -al
|
- 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"
|
#- run: nix-shell -p docker --command "docker run --security-opt seccomp=unconfined -v $PWD:/volume xd009642/tarpaulin cargo tarpaulin --out Html --all-features"
|
||||||
|
|
|
||||||
4
Justfile
4
Justfile
|
|
@ -20,7 +20,7 @@ test:
|
||||||
prof:
|
prof:
|
||||||
CARGO_PROFILE_RELEASE_DEBUG=true cargo flamegraph -- arranger
|
CARGO_PROFILE_RELEASE_DEBUG=true cargo flamegraph -- arranger
|
||||||
doc:
|
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'"
|
covfig := "CARGO_INCREMENTAL=0 RUSTFLAGS='-Cinstrument-coverage' RUSTDOCFLAGS='-Cinstrument-coverage' LLVM_PROFILE_FILE='cov/cargo-test-%p-%m.profraw'"
|
||||||
cov:
|
cov:
|
||||||
rm -rf target/coverage/html || true
|
rm -rf target/coverage/html || true
|
||||||
|
|
@ -45,6 +45,8 @@ run:
|
||||||
{{debug}}
|
{{debug}}
|
||||||
release:
|
release:
|
||||||
{{release}}
|
{{release}}
|
||||||
|
build-release:
|
||||||
|
time cargo build -j4 --release
|
||||||
|
|
||||||
clock:
|
clock:
|
||||||
{{debug}} {{name}} {{bpm}} clock
|
{{debug}} {{name}} {{bpm}} clock
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue