By passing -split-sections to all dependencies, GHC will link only the modules we actually use and not the full package for each dependency. This does neither work on MacOS nor Windows, thus we don't do it for stack right now. Stripping unused symbols in CI will further decrease the size of those files.
19 lines
413 B
YAML
19 lines
413 B
YAML
freebsd_instance:
|
|
image_family: freebsd-14-0
|
|
|
|
build_task:
|
|
name: Build FreeBSD (Stack)
|
|
install_script: pkg install -y postgresql13-client hs-stack git
|
|
|
|
stack_cache:
|
|
folders: /.stack
|
|
fingerprint_script: cat postgrest.cabal stack.yaml.lock
|
|
reupload_on_changes: false
|
|
|
|
build_script: |
|
|
stack build -j 1 --local-bin-path . --copy-bins
|
|
strip postgrest
|
|
|
|
bin_artifacts:
|
|
path: postgrest
|