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"
62 build-x86_64-linux-alpine:
68 - sudo apk add --no-cache zlib zlib-dev zlib-static
69 image: "registry.gitlab.haskell.org/ghc/ci-images/x86_64-linux-alpine3_12:$DOCKER_REV"
71 TARBALL_ARCHIVE_SUFFIX: x86_64-linux-alpine
73 ADD_CABAL_ARGS: "--enable-split-sections --enable-executable-static"
80 TARBALL_ARCHIVE_SUFFIX: x86_64-darwin
89 - export HOMEBREW_CHANGE_ARCH_TO_ARM=1
90 - arch -arm64 /bin/bash ./.gitlab/brew.sh llvm autoconf automake coreutils make tree
91 # C_INCLUDE_PATH: https://gitlab.haskell.org/ghc/ghc/-/issues/20592
93 export PATH="$CI_PROJECT_DIR/.brew/opt/llvm/bin:$CI_PROJECT_DIR/.brew/bin:$CI_PROJECT_DIR/.brew/sbin:$PATH"
94 export CC=$CI_PROJECT_DIR/.brew/opt/llvm/bin/clang
95 export CXX=$CI_PROJECT_DIR/.brew/opt/llvm/bin/clang++
97 export AR=$CI_PROJECT_DIR/.brew/opt/llvm/bin/llvm-ar
98 export RANLIB=$CI_PROJECT_DIR/.brew/opt/llvm/bin/llvm-ranlib
99 export C_INCLUDE_PATH="`xcrun --show-sdk-path`/usr/include/ffi"
100 arch -arm64 /bin/bash ./.gitlab/ci.sh
102 - rm -Rf /private/tmp/.brew_tmp
104 MACOSX_DEPLOYMENT_TARGET: "10.7"
105 TARBALL_ARCHIVE_SUFFIX: aarch64-darwin
108 # Update periodically.
118 build-x86_64-windows:
121 - $env:CHERE_INVOKING = "yes"
122 - bash '-lc' "ADD_CABAL_ARGS=$env:ADD_CABAL_ARGS GHC_VERSION=$env:GHC_VERSION CABAL_INSTALL_VERSION=$CABAL_INSTALL_VERSION .gitlab/ci.sh"
126 TARBALL_ARCHIVE_SUFFIX: x86_64-windows