ciel/.gitlab-ci.yml
2024-09-04 16:15:00 +02:00

72 lines
2.4 KiB
YAML

build debian:
stage: build
# Build on Debian and SBCL.
# We want to build CIEL in a sufficiently old Debian version:
# the glibc will be compatible with lots of Debian and Ubuntu systems,
# however building on the latest (Bullseye) would lead to incompatible glibc errors
# when running on newer systems.
# Buster: released in July, 2019.
# Bullseye: released in August, 2021, supported until July, 2024.
image: clfoundation/sbcl:2.1.5-buster
# We need to install some system dependencies,
# to clone libraries not in Quicklisp,
# and to update ASDF to >= 3.3.5 in order to use local-package-nicknames.
before_script:
- apt-get update -qy
- apt-get install -y git-core tar
# The image doesn't have Quicklisp installed by default.
- QUICKLISP_ADD_TO_INIT_FILE=true /usr/local/bin/install-quicklisp
# Upgrade ASDF (UIOP) to 3.3.5 because we want package-local-nicknames.
- mkdir -p ~/common-lisp/asdf/
- ( cd ~/common-lisp/ && wget https://asdf.common-lisp.dev/archives/asdf-3.3.5.tar.gz && tar -xvf asdf-3.3.5.tar.gz && mv asdf-3.3.5 asdf )
- echo "Content of ~/common-lisp/asdf/:" && ls ~/common-lisp/asdf/
# Install system dependencies
- make debian-deps
# Clone upstream QL libraries.
- make ql-deps
script:
# build a ciel binary on cwd:
- make build
artifacts:
name: "ciel"
paths:
- ciel
build void:
stage: build
# Use custom docker image since the official ones
# can't be used in gitlab CI pipelines
image: cinerion/ciel-sbcl-voidlinux
# We need to install some system dependencies,
# to clone libraries not in Quicklisp,
# and to update ASDF to >= 3.3.5 in order to use local-package-nicknames.
before_script:
- xbps-install -S
- xbps-install -uy xbps
- xbps-install -uy
# The image doesn't have Quicklisp installed by default.
- QUICKLISP_ADD_TO_INIT_FILE=true /usr/local/bin/install-quicklisp
# Upgrade ASDF (UIOP) to 3.3.5 because we want package-local-nicknames.
- mkdir -p ~/common-lisp/asdf/
- ( cd ~/common-lisp/ && wget https://asdf.common-lisp.dev/archives/asdf-3.3.5.tar.gz && tar -xvf asdf-3.3.5.tar.gz && mv asdf-3.3.5 asdf )
- echo "Content of ~/common-lisp/asdf/:" && ls ~/common-lisp/asdf/
# Clone upstream QL libraries.
- make ql-deps
script:
# build a ciel binary on cwd:
- make build
artifacts:
name: "ciel"
paths:
- ciel