mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-05-19 03:20:21 -07:00
ci: Speed up builds using ghc-options: -j
Building xmonad-contrib benefits greatly from compiling modules in parallel. Vanessa McHale suggested setting ghc-options in xmonad-contrib.cabal in #431, but that's bad practice—these options should be set by the user/environment where it's being built, not selfishly hardcoded for specific package. In stack.yaml and cabal.haskell-ci, we know for sure that xmonad-contrib is the terminal (leaf) library, so we can set it there and speed up builds in our CI and also for anyone who uses our stack.yaml (not that anyone should). Closes: https://github.com/xmonad/xmonad-contrib/pull/431
This commit is contained in:
parent
17ef2b95db
commit
9b933b1f69
1
.github/workflows/haskell-ci.yml
vendored
1
.github/workflows/haskell-ci.yml
vendored
@ -143,6 +143,7 @@ jobs:
|
||||
|
||||
package xmonad-contrib
|
||||
flags: +pedantic
|
||||
ghc-options: -j
|
||||
EOF
|
||||
$HCPKG list --simple-output --names-only | perl -ne 'for (split /\s+/) { print "constraints: $_ installed\n" unless /^(xmonad-contrib)$/; }' >> cabal.project.local
|
||||
cat cabal.project
|
||||
|
@ -9,3 +9,4 @@ apt:
|
||||
raw-project
|
||||
package xmonad-contrib
|
||||
flags: +pedantic
|
||||
ghc-options: -j
|
||||
|
@ -9,3 +9,6 @@ packages:
|
||||
extra-deps:
|
||||
- github: xmonad/xmonad
|
||||
commit: master@{today}
|
||||
|
||||
ghc-options:
|
||||
xmonad-contrib: '-j'
|
||||
|
@ -15,3 +15,6 @@ nix:
|
||||
- xorg.libXrandr
|
||||
- xorg.libXrender
|
||||
- xorg.libXScrnSaver
|
||||
|
||||
ghc-options:
|
||||
xmonad-contrib: '-j'
|
||||
|
Loading…
x
Reference in New Issue
Block a user