[commit: ghc] master: CircleCI: Build DWARF-enabled Linux bindists (406978c)

git at git.haskell.org git at git.haskell.org
Wed Nov 7 13:10:18 UTC 2018


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/406978c478e4b14e677f396499420d7b8e5d21fd/ghc

>---------------------------------------------------------------

commit 406978c478e4b14e677f396499420d7b8e5d21fd
Author: Ben Gamari <ben at smart-cactus.org>
Date:   Mon Nov 5 13:45:59 2018 -0500

    CircleCI: Build DWARF-enabled Linux bindists


>---------------------------------------------------------------

406978c478e4b14e677f396499420d7b8e5d21fd
 .circleci/config.yml        | 23 +++++++++++++++++++++++
 .circleci/prepare-system.sh |  7 +++++++
 2 files changed, 30 insertions(+)

diff --git a/.circleci/config.yml b/.circleci/config.yml
index f356901..6fd9b84 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -114,6 +114,27 @@ jobs:
       - *test
       - *store_test_results
 
+  "validate-x86_64-linux-dwarf":
+    resource_class: xlarge
+    docker:
+      - image: ghcci/x86_64-linux:0.0.4
+    environment:
+      <<: *buildenv
+      GHC_COLLECTOR_FLAVOR: x86_64-linux-dwarf
+      ENABLE_DWARF: 1
+      CONFIGURE_OPTS: --enable-dwarf-unwind
+    steps:
+      - checkout
+      - *prepare
+      - *submodules
+      - *boot
+      - *configure_unix
+      - *make
+      - *bindist
+      - *storeartifacts
+      - *test
+      - *store_test_results
+
   "validate-x86_64-freebsd":
     resource_class: xlarge
     docker:
@@ -292,6 +313,8 @@ workflows:
     jobs:
     - validate-x86_64-linux:
         *trigger_on_tags
+    - validate-x86_64-linux-dwarf:
+        *trigger_on_tags
     # FreeBSD disabled: https://github.com/haskell/unix/issues/102
     # - validate-x86_64-freebsd
     - validate-x86_64-darwin:
diff --git a/.circleci/prepare-system.sh b/.circleci/prepare-system.sh
index dbb1011..39d32f1 100755
--- a/.circleci/prepare-system.sh
+++ b/.circleci/prepare-system.sh
@@ -22,6 +22,10 @@ BUILD_SPHINX_PDF=$BUILD_SPHINX_PDF
 BeConservative=YES
 EOF
 
+if [[ -z ${ENABLE_DWARF:-} ]]; then
+  echo "GhcLibHcOpts=-g3" >> mk/build.mk
+fi
+
 case "$(uname)" in
   Linux)
     if [[ -n ${TARGET:-} ]]; then
@@ -47,6 +51,9 @@ case "$(uname)" in
       cabal update
       cabal install --reinstall hscolour
       sudo ln -s /home/ghc/.cabal/bin/HsColour /usr/local/bin/HsColour || true
+      if [[ -z ${ENABLE_DWARF:-} ]]; then
+        apt-get install -qy libdw1-dev
+      fi
     fi
     ;;
 



More information about the ghc-commits mailing list