mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-05-19 03:20:21 -07:00
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:
parent
7c7ff1fabd
commit
7402a7c250
5
.github/workflows/nix.yml
vendored
5
.github/workflows/nix.yml
vendored
@ -22,4 +22,7 @@ jobs:
|
|||||||
- name: Clone project
|
- name: Clone project
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
- name: Build
|
- 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
|
||||||
|
@ -23,6 +23,7 @@
|
|||||||
rec {
|
rec {
|
||||||
devShell = pkgs.haskellPackages.shellFor {
|
devShell = pkgs.haskellPackages.shellFor {
|
||||||
packages = p: [ p.xmonad-contrib ];
|
packages = p: [ p.xmonad-contrib ];
|
||||||
|
nativeBuildInputs = [ pkgs.cabal-install ];
|
||||||
};
|
};
|
||||||
defaultPackage = pkgs.haskellPackages.xmonad-contrib;
|
defaultPackage = pkgs.haskellPackages.xmonad-contrib;
|
||||||
}) // { inherit overlay overlays; } ;
|
}) // { inherit overlay overlays; } ;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user