diff --git a/.forgejo/workflows/build.yaml b/.forgejo/workflows/build.yaml index 2d80fe67..46c25922 100644 --- a/.forgejo/workflows/build.yaml +++ b/.forgejo/workflows/build.yaml @@ -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" diff --git a/Justfile b/Justfile index 071703c8..ca8ff164 100644 --- a/Justfile +++ b/Justfile @@ -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