Skip to content

Commit

Permalink
Improve gitlab CI
Browse files Browse the repository at this point in the history
  • Loading branch information
hasufell committed Feb 6, 2022
1 parent 476d0c9 commit ed9bf02
Showing 1 changed file with 98 additions and 84 deletions.
182 changes: 98 additions & 84 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,41 +51,73 @@ workflow:
script:
- bash .gitlab/test.sh

.aarch64-linux:
tags:
- aarch64-linux
image: "registry.gitlab.haskell.org/ghc/ci-images/aarch64-linux-deb10:$DOCKER_REV"

.armv7-linux:
tags:
- armv7-linux
image: "registry.gitlab.haskell.org/ghc/ci-images/armv7-linux-deb10:$DOCKER_REV"

.x86_64-linux-deb10:
tags:
- x86_64-linux
image: "registry.gitlab.haskell.org/ghc/ci-images/x86_64-linux-deb10:$DOCKER_REV"

.x86_64-linux-deb9:
tags:
- x86_64-linux
image: "registry.gitlab.haskell.org/ghc/ci-images/x86_64-linux-deb9:$DOCKER_REV"

.x86_64-linux-centos7:
tags:
- x86_64-linux
image: "registry.gitlab.haskell.org/ghc/ci-images/x86_64-linux-centos7:$DOCKER_REV"

.x86_64-linux-fedora27:
tags:
- x86_64-linux
image: "registry.gitlab.haskell.org/ghc/ci-images/x86_64-linux-fedora27:$DOCKER_REV"

.x86_64-linux-alpine:
tags:
- x86_64-linux
image: "registry.gitlab.haskell.org/ghc/ci-images/x86_64-linux-alpine3_12:$DOCKER_REV"


######################
# aarch64 linux deb10
######################

build-aarch64-linux-deb10:
extends: .build
extends:
- .build
- .aarch64-linux
before_script:
- sudo apt update
- sudo apt install -y patchelf tree
tags:
- aarch64-linux
image: "registry.gitlab.haskell.org/ghc/ci-images/aarch64-linux-deb10:$DOCKER_REV"
variables:
ADD_CABAL_ARGS: ""

tar-aarch64-linux-deb10:
extends: .artifacts
extends:
- .artifacts
- .aarch64-linux
stage: tar
needs: ["build-aarch64-linux-deb10"]
tags:
- aarch64-linux
image: "registry.gitlab.haskell.org/ghc/ci-images/aarch64-linux-deb10:$DOCKER_REV"
script:
- ./.gitlab/tar.sh
variables:
TARBALL_ARCHIVE_SUFFIX: aarch64-deb10-linux
TARBALL_EXT: tar.xz

test-aarch64-linux-deb10:
extends: .test
extends:
- .test
- .aarch64-linux
needs: ["tar-aarch64-linux-deb10"]
tags:
- aarch64-linux
image: "registry.gitlab.haskell.org/ghc/ci-images/aarch64-linux-deb10:$DOCKER_REV"
before_script:
- sudo apt update
- sudo apt install -y tree
Expand All @@ -96,35 +128,32 @@ test-aarch64-linux-deb10:
######################

build-armv7-linux-deb10:
extends: .build
extends:
- .build
- .armv7-linux
before_script:
- sudo apt update
- sudo apt install -y patchelf tree
tags:
- armv7-linux
image: "registry.gitlab.haskell.org/ghc/ci-images/armv7-linux-deb10:$DOCKER_REV"
variables:
ADD_CABAL_ARGS: ""

tar-armv7-linux-deb10:
extends: .artifacts
extends:
- .artifacts
- .armv7-linux
stage: tar
needs: ["build-armv7-linux-deb10"]
tags:
- armv7-linux
image: "registry.gitlab.haskell.org/ghc/ci-images/armv7-linux-deb10:$DOCKER_REV"
script:
- ./.gitlab/tar.sh
variables:
TARBALL_ARCHIVE_SUFFIX: armv7-deb10-linux
TARBALL_EXT: tar.xz

test-armv7-linux-deb10:
extends: .test
extends:
- .test
- .armv7-linux
needs: ["tar-armv7-linux-deb10"]
tags:
- armv7-linux
image: "registry.gitlab.haskell.org/ghc/ci-images/armv7-linux-deb10:$DOCKER_REV"
before_script:
- sudo apt update
- sudo apt install -y tree
Expand All @@ -135,35 +164,32 @@ test-armv7-linux-deb10:
######################

build-x86_64-linux-deb10:
extends: .build
extends:
- .build
- .x86_64-linux-deb10
before_script:
- sudo apt update
- sudo apt install -y patchelf tree
tags:
- x86_64-linux
image: "registry.gitlab.haskell.org/ghc/ci-images/x86_64-linux-deb10:$DOCKER_REV"
variables:
ADD_CABAL_ARGS: "--enable-split-sections"

tar-x86_64-linux-deb10:
extends: .artifacts
extends:
- .artifacts
- .x86_64-linux-deb10
stage: tar
needs: ["build-x86_64-linux-deb10"]
tags:
- x86_64-linux
image: "registry.gitlab.haskell.org/ghc/ci-images/x86_64-linux-deb10:$DOCKER_REV"
script:
- ./.gitlab/tar.sh
variables:
TARBALL_ARCHIVE_SUFFIX: x86_64-deb10-linux
TARBALL_EXT: tar.xz

test-x86_64-linux-deb10:
extends: .test
extends:
- .test
- .x86_64-linux-deb10
needs: ["tar-x86_64-linux-deb10"]
tags:
- x86_64-linux
image: "registry.gitlab.haskell.org/ghc/ci-images/x86_64-linux-deb10:$DOCKER_REV"
before_script:
- sudo apt update
- sudo apt install -y tree
Expand All @@ -173,35 +199,32 @@ test-x86_64-linux-deb10:
######################

build-x86_64-linux-deb9:
extends: .build
extends:
- .build
- .x86_64-linux-deb9
before_script:
- sudo apt update
- sudo apt install -y patchelf tree
tags:
- x86_64-linux
image: "registry.gitlab.haskell.org/ghc/ci-images/x86_64-linux-deb9:$DOCKER_REV"
variables:
ADD_CABAL_ARGS: "--enable-split-sections"

tar-x86_64-linux-deb9:
extends: .artifacts
extends:
- .artifacts
- .x86_64-linux-deb9
stage: tar
needs: ["build-x86_64-linux-deb9"]
tags:
- x86_64-linux
image: "registry.gitlab.haskell.org/ghc/ci-images/x86_64-linux-deb9:$DOCKER_REV"
script:
- ./.gitlab/tar.sh
variables:
TARBALL_ARCHIVE_SUFFIX: x86_64-deb9-linux
TARBALL_EXT: tar.xz

test-x86_64-linux-deb9:
extends: .test
extends:
- .test
- .x86_64-linux-deb9
needs: ["tar-x86_64-linux-deb9"]
tags:
- x86_64-linux
image: "registry.gitlab.haskell.org/ghc/ci-images/x86_64-linux-deb9:$DOCKER_REV"
before_script:
- sudo apt update
- sudo apt install -y tree
Expand All @@ -211,35 +234,32 @@ test-x86_64-linux-deb9:
######################

build-x86_64-linux-centos7:
extends: .build
extends:
- .build
- .x86_64-linux-centos7
before_script:
- sudo yum install -y epel-release
- sudo yum install -y patchelf tree
tags:
- x86_64-linux
image: "registry.gitlab.haskell.org/ghc/ci-images/x86_64-linux-centos7:$DOCKER_REV"
variables:
ADD_CABAL_ARGS: "--enable-split-sections"

tar-x86_64-linux-centos7:
extends: .artifacts
extends:
- .artifacts
- .x86_64-linux-centos7
stage: tar
needs: ["build-x86_64-linux-centos7"]
tags:
- x86_64-linux
image: "registry.gitlab.haskell.org/ghc/ci-images/x86_64-linux-centos7:$DOCKER_REV"
script:
- ./.gitlab/tar.sh
variables:
TARBALL_ARCHIVE_SUFFIX: x86_64-centos7-linux
TARBALL_EXT: tar.xz

test-x86_64-linux-centos7:
extends: .test
extends:
- .test
- .x86_64-linux-centos7
needs: ["tar-x86_64-linux-centos7"]
tags:
- x86_64-linux
image: "registry.gitlab.haskell.org/ghc/ci-images/x86_64-linux-centos7:$DOCKER_REV"
before_script:
- sudo yum install -y tree

Expand All @@ -248,34 +268,31 @@ test-x86_64-linux-centos7:
######################

build-x86_64-linux-fedora27:
extends: .build
extends:
- .build
- .x86_64-linux-fedora27
before_script:
- sudo dnf install -y patchelf tree
tags:
- x86_64-linux
image: "registry.gitlab.haskell.org/ghc/ci-images/x86_64-linux-fedora27:$DOCKER_REV"
variables:
ADD_CABAL_ARGS: "--enable-split-sections"

tar-x86_64-linux-fedora27:
extends: .artifacts
extends:
- .artifacts
- .x86_64-linux-fedora27
stage: tar
needs: ["build-x86_64-linux-fedora27"]
tags:
- x86_64-linux
image: "registry.gitlab.haskell.org/ghc/ci-images/x86_64-linux-fedora27:$DOCKER_REV"
script:
- ./.gitlab/tar.sh
variables:
TARBALL_ARCHIVE_SUFFIX: x86_64-fedora27-linux
TARBALL_EXT: tar.xz

test-x86_64-linux-fedora27:
extends: .test
extends:
- .test
- .x86_64-linux-fedora27
needs: ["tar-x86_64-linux-fedora27"]
tags:
- x86_64-linux
image: "registry.gitlab.haskell.org/ghc/ci-images/x86_64-linux-fedora27:$DOCKER_REV"
before_script:
- sudo dnf install -y tree

Expand All @@ -285,22 +302,20 @@ test-x86_64-linux-fedora27:
######################

build-x86_64-linux-alpine:
extends: .build
tags:
- x86_64-linux
image: "registry.gitlab.haskell.org/ghc/ci-images/x86_64-linux-alpine3_12:$DOCKER_REV"
extends:
- .build
- .x86_64-linux-alpine
before_script:
- sudo apk add --no-cache tar zlib zlib-dev zlib-static bzip2 bzip2-dev bzip2-static gmp gmp-dev xz xz-dev ncurses-static patchelf findutils tree
variables:
ADD_CABAL_ARGS: "--enable-split-sections --enable-executable-static"

tar-x86_64-linux-alpine:
extends: .artifacts
extends:
- .artifacts
- .x86_64-linux-alpine
stage: tar
needs: ["build-x86_64-linux-alpine"]
tags:
- x86_64-linux
image: "registry.gitlab.haskell.org/ghc/ci-images/x86_64-linux-alpine3_12:$DOCKER_REV"
before_script:
- sudo apk add --no-cache tar zlib zlib-dev zlib-static bzip2 bzip2-dev bzip2-static gmp gmp-dev xz xz-dev ncurses-static
script:
Expand All @@ -310,11 +325,10 @@ tar-x86_64-linux-alpine:
TARBALL_EXT: tar.xz

test-x86_64-linux-alpine:
extends: .test
extends:
- .test
- .x86_64-linux-alpine
needs: ["tar-x86_64-linux-alpine"]
tags:
- x86_64-linux
image: "registry.gitlab.haskell.org/ghc/ci-images/x86_64-linux-alpine3_12:$DOCKER_REV"
before_script:
- sudo apk add --no-cache tar zlib zlib-dev zlib-static bzip2 bzip2-dev bzip2-static gmp gmp-dev xz xz-dev ncurses-static tree

Expand Down

0 comments on commit ed9bf02

Please sign in to comment.