5 # Commit of ghc/ci-images repository from which to pull Docker images
6 DOCKER_REV: "572353e0644044fe3a5465bba4342a9a0b0eb60e"
9 CABAL_INSTALL_VERSION: 3.6.2.0
15 # Triggered if you start it from the gitlab web ui
16 - if: '$CI_PIPELINE_SOURCE == "web"'
55 image: "registry.gitlab.haskell.org/ghc/ci-images/$PLATFORM:$DOCKER_REV"
57 PLATFORM: "${ARCH}-linux-${OS}"
58 TARBALL_ARCHIVE_SUFFIX: $PLATFORM
60 ADD_CABAL_ARGS: "--enable-split-sections"
75 - sudo apk add --no-cache zlib zlib-dev zlib-static
76 image: "registry.gitlab.haskell.org/ghc/ci-images/$PLATFORM:$DOCKER_REV"
78 PLATFORM: "${ARCH}-linux-${OS}"
79 TARBALL_ARCHIVE_SUFFIX: $PLATFORM
81 ADD_CABAL_ARGS: "--enable-split-sections --enable-executable-static"
88 TARBALL_ARCHIVE_SUFFIX: x86_64-darwin
97 - export HOMEBREW_CHANGE_ARCH_TO_ARM=1
98 - arch -arm64 /bin/bash ./.gitlab/brew.sh llvm autoconf automake coreutils make tree
99 # C_INCLUDE_PATH: https://gitlab.haskell.org/ghc/ghc/-/issues/20592
101 export PATH="$CI_PROJECT_DIR/.brew/opt/llvm/bin:$CI_PROJECT_DIR/.brew/bin:$CI_PROJECT_DIR/.brew/sbin:$PATH"
102 export CC=$CI_PROJECT_DIR/.brew/opt/llvm/bin/clang
103 export CXX=$CI_PROJECT_DIR/.brew/opt/llvm/bin/clang++
105 export AR=$CI_PROJECT_DIR/.brew/opt/llvm/bin/llvm-ar
106 export RANLIB=$CI_PROJECT_DIR/.brew/opt/llvm/bin/llvm-ranlib
107 export C_INCLUDE_PATH="`xcrun --show-sdk-path`/usr/include/ffi"
108 arch -arm64 /bin/bash ./.gitlab/ci.sh
110 - rm -Rf /private/tmp/.brew_tmp
112 MACOSX_DEPLOYMENT_TARGET: "10.7"
113 TARBALL_ARCHIVE_SUFFIX: aarch64-darwin
116 # Update periodically.
126 build-x86_64-windows:
129 - $env:CHERE_INVOKING = "yes"
130 - bash '-lc' "ADD_CABAL_ARGS=$env:ADD_CABAL_ARGS GHC_VERSION=$env:GHC_VERSION CABAL_INSTALL_VERSION=$CABAL_INSTALL_VERSION .gitlab/ci.sh"
134 TARBALL_ARCHIVE_SUFFIX: x86_64-windows