Skip to content
Snippets Groups Projects
Unverified Commit 535211fa authored by Bryan R's avatar Bryan R Committed by GitHub
Browse files

Release CI: fixes and improvements (#9348)

* gitlab ci: Don't install stack

Fixes #9304

* Repair cabal's index state

Fixes #9312

* Expand alpine builds to include i386

Note the use of ghc-9.0.2 for i386-alpine.

Resolves #9347
parent 9f373253
No related branches found
No related tags found
No related merge requests found
Pipeline #85516 passed
......@@ -59,16 +59,24 @@ build-linux:
TARBALL_EXT: tar.xz
ADD_CABAL_ARGS: "--enable-split-sections"
build-x86_64-linux-alpine:
build-linux-alpine:
extends: .build
parallel:
matrix:
- ARCH: i386
OS: [alpine3_12]
GHC_VERSION: 9.0.2
- ARCH: x86_64
OS: [alpine3_12]
tags:
- x86_64-linux
before_script:
# for cabal build
- sudo apk add --no-cache zlib zlib-dev zlib-static
image: "registry.gitlab.haskell.org/ghc/ci-images/x86_64-linux-alpine3_12:$DOCKER_REV"
image: "registry.gitlab.haskell.org/ghc/ci-images/$PLATFORM:$DOCKER_REV"
variables:
TARBALL_ARCHIVE_SUFFIX: x86_64-linux-alpine
PLATFORM: "${ARCH}-linux-${OS}"
TARBALL_ARCHIVE_SUFFIX: $PLATFORM
TARBALL_EXT: tar.xz
ADD_CABAL_ARGS: "--enable-split-sections --enable-executable-static"
......
......@@ -27,6 +27,8 @@ export BOOTSTRAP_HASKELL_NONINTERACTIVE=1
export BOOTSTRAP_HASKELL_GHC_VERSION=$GHC_VERSION
export BOOTSTRAP_HASKELL_CABAL_VERSION=$CABAL_INSTALL_VERSION
export BOOTSTRAP_HASKELL_ADJUST_CABAL_CONFIG=yes
# We don't use stack, and it isn't available on i386-deb9
export BOOTSTRAP_HASKELL_INSTALL_NO_STACK=yes
# for some reason the subshell doesn't pick up the arm64 environment on darwin
# and starts installing x86_64 GHC
......@@ -63,6 +65,7 @@ args=(
${ADD_CABAL_ARGS}
)
run cabal update hackage.haskell.org,HEAD
run cabal v2-build ${args[@]} cabal-install
mkdir "$CI_PROJECT_DIR/out"
......
......@@ -5,3 +5,4 @@ packages: cabal-install/
tests: False
benchmarks: False
optimization: True
index-state: hackage.haskell.org 2023-10-13T10:16:13Z
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment