Use "nix develop -c cabal v2-build -O0" to speed up the workflow

With "nix build", just the build of xmonad-contrib itself takes 3
minutes (it builds twice, the second build with profiling enabled), so
it ends up being almost 6 minutes in total, making this workflow the
slowest one.
This commit is contained in:
Ivan Malison
2021-08-01 16:56:53 -06:00
committed by Tomas Janousek
parent 7c7ff1fabd
commit 7402a7c250
2 changed files with 5 additions and 1 deletions

View File

@@ -22,4 +22,7 @@ jobs:
- name: Clone project
uses: actions/checkout@v2
- name: Build
run: nix build --print-build-logs
# "nix build" builds with full optimization and includes a profiling
# build, so just the build of xmonad-contrib itself takes 3 minutes.
# As a workaround, we invoke cabal manually here.
run: nix develop -c cabal v2-build -O0 -j