mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-14 08:02:15 +03:00
ci: add a new parallel job to build haddocks, to save CI time
GitOrigin-RevId: ad8bb107a962435808e8c638459a320b48531343
This commit is contained in:
parent
736236a904
commit
6efa507ad3
1
cabal.project.ci-haddock
Symbolic link
1
cabal.project.ci-haddock
Symbolic link
@ -0,0 +1 @@
|
||||
cabal.project
|
1
cabal.project.ci-haddock.freeze
Symbolic link
1
cabal.project.ci-haddock.freeze
Symbolic link
@ -0,0 +1 @@
|
||||
cabal.project.freeze
|
36
cabal.project.ci-haddock.local
Normal file
36
cabal.project.ci-haddock.local
Normal file
@ -0,0 +1,36 @@
|
||||
-- This configuration is just for building haddocks in CI. `cabal haddock` requires
|
||||
-- the project to be built. We can do that at the end of the build job, but that
|
||||
-- adds ~7min wall clock time to CI, since haddock is extremely slow.
|
||||
-- Instead we make this a parallel job, but use a configuration with optimizations
|
||||
-- off so the haskell build will be relatively fast.
|
||||
|
||||
-- NOTE!: we want to make sure this matches cabal.project.ci.local, so we can re-use the
|
||||
-- cached library dependencies and don't accidentally rebuild:
|
||||
package *
|
||||
ghc-options:
|
||||
-j2
|
||||
+RTS -M15000m -RTS
|
||||
+RTS -A64m -n2m -RTS
|
||||
|
||||
-- Disable optimizations
|
||||
flags: -optimize-hasura
|
||||
|
||||
package graphql-engine
|
||||
ghc-options:
|
||||
-- At this point though we definitely want full module-level parallelism:
|
||||
-j
|
||||
-Werror
|
||||
-- For speed; see `cabal.project.dev-sh.local`:
|
||||
executable-dynamic: True
|
||||
library-vanilla: False
|
||||
|
||||
-- %%%-BEGIN-PRO-ONLY-CONTENT-%%%
|
||||
|
||||
package graphql-engine-pro
|
||||
ghc-options:
|
||||
-- At this point though we definitely want full module-level parallelism:
|
||||
-j
|
||||
-Werror
|
||||
-- For speed; see `cabal.project.dev-sh.local`:
|
||||
executable-dynamic: True
|
||||
library-vanilla: False
|
Loading…
Reference in New Issue
Block a user