From e04e3d812a2fc75cf198dfa8578eb95fc35a03fa Mon Sep 17 00:00:00 2001 From: Ben Gamari Date: Sun, 31 Mar 2019 14:32:01 -0400 Subject: gitlab-ci: Build hyperlinked sources for releases Fixes #16445. (cherry picked from commit a32ac2f4d963b657c0a53359b492c593e82304b1) --- .gitlab-ci.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e33f3629ed..b97ba70e16 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -152,6 +152,12 @@ validate-x86_64-darwin: - git submodule sync --recursive - git submodule update --init --recursive - git checkout .gitmodules + - "git fetch https://gitlab.haskell.org/ghc/ghc-performance-notes.git refs/notes/perf:refs/notes/perf || true" + # Build hyperlinked sources for documentation when building releases + - | + if [[ -n "$CI_COMMIT_TAG" ]]; then + echo "EXTRA_HADDOCK_OPTS += --hyperlinked-source --quickjump" >> mk/build.mk + fi - bash .circleci/prepare-system.sh # workaround for docker permissions -- cgit v1.2.1