chore(github): reduce compile time in build, nix, and release workflows

Summary: When building in CI, we just build everything from scratch in the `dev`
profile, so just turn off debuginfo and incremental compilation data. These
aren't reused, but more importantly take up more space and CPU time to generate;
that's more expensive on slower machines and when using The Cloud(TM) to build.

Together, these take a fresh build (`rm -rf target/` ahead of time) from about
40s to 30s on my machine.

Signed-off-by: Austin Seipp <aseipp@pobox.com>
Change-Id: Id6e706634dbaf88f6ccd7f457409ad7c
This commit is contained in:
Austin Seipp 2023-07-10 02:01:17 -05:00
parent d81c599153
commit f1e09e3f3f
3 changed files with 8 additions and 0 deletions

View file

@ -8,6 +8,10 @@ on:
permissions: read-all
env:
CARGO_INCREMENTAL: 0
CARGO_PROFILE_DEV_DEBUG: 0
jobs:
build:
strategy:

View file

@ -6,6 +6,9 @@ on:
permissions: read-all
env:
CARGO_INCREMENTAL: 0
jobs:
build-release:
name: build-release

View file

@ -67,6 +67,7 @@
ZSTD_SYS_USE_PKG_CONFIG = "1";
LIBSSH2_SYS_USE_PKG_CONFIG = "1";
NIX_JJ_GIT_HASH = self.rev or "";
CARGO_INCREMENTAL = "0";
postInstall = ''
$out/bin/jj util mangen > ./jj.1
installManPage ./jj.1