mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-14 08:02:15 +03:00
09e328223e
When building under the `dev.sh`-adjusted `cabal.local` files, it's not possible to build all Haskell components: ```shell $ cabal build all all:tests all:benchmarks [... snipped ...] [1 of 1] Compiling Harness.GraphqlEnginePro ( src/Harness/GraphqlEnginePro.hs, /home/auke/graphql-engine-mono/dist-newstyle/build/x86_64-linux/ghc-9.2.5/test-harness-pro-0.1.0.0/opt/build/Harness/GraphqlEnginePro.o, /home/auke/graphql-engine-mono/dist-newstyle/build/x86_64-linux/ghc-9.2.5/test-harness-pro-0.1.0.0/opt/build/Harness/GraphqlEnginePro.dyn_o ) src/Harness/GraphqlEnginePro.hs:13:1: error: Could not find module 'Control.Concurrent.Extended' There are files missing in the 'graphql-engine-1.0.0' package, try running 'ghc-pkg check'. Use -v (or `:set -v` in ghci) to see a list of the files searched for. | 13 | import Control.Concurrent.Extended (sleep) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ src/Harness/GraphqlEnginePro.hs:14:1: error: Could not find module 'Data.Environment' There are files missing in the 'graphql-engine-1.0.0' package, try running 'ghc-pkg check'. Use -v (or `:set -v` in ghci) to see a list of the files searched for. | 14 | import Data.Environment qualified as Env | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ``` PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6962 GitOrigin-RevId: dd7992dfa4e5b999f9b3d39389121bde1465965d
57 lines
1.5 KiB
Plaintext
57 lines
1.5 KiB
Plaintext
-- 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 `ci.project.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
|
|
|
|
package test-harness
|
|
ghc-options: -Werror -j
|
|
executable-dynamic: True
|
|
library-vanilla: False
|
|
|
|
package api-tests
|
|
ghc-options: -Werror -j
|
|
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
|
|
|
|
package test-harness-pro
|
|
ghc-options: -Werror -j
|
|
executable-dynamic: True
|
|
library-vanilla: False
|
|
|
|
package api-tests-pro
|
|
ghc-options: -Werror -j
|
|
executable-dynamic: True
|
|
library-vanilla: False
|