Skip to content

Commit

Permalink
CI: update Ubuntu container image and set compiler version
Browse files Browse the repository at this point in the history
  • Loading branch information
danzatt committed Jul 31, 2024
1 parent 35bf791 commit 7c992fa
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
11 changes: 7 additions & 4 deletions .gitlab/ci/cibuild-setup-ubuntu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,20 @@ set -ex
PACKAGES=(
git make autoconf automake autopoint pkg-config libtool libtool-bin
gettext libssl-dev libdevmapper-dev libpopt-dev uuid-dev libsepol-dev
libjson-c-dev libssh-dev libblkid-dev tar libargon2-0-dev libpwquality-dev
libjson-c-dev libssh-dev libblkid-dev tar libargon2-dev libpwquality-dev
sharutils dmsetup jq xxd expect keyutils netcat-openbsd passwd openssh-client
sshpass asciidoctor
)

COMPILER="${COMPILER:?}"
COMPILER_VERSION="${COMPILER_VERSION:?}"

grep -E '^deb' /etc/apt/sources.list > /etc/apt/sources.list~
sed -Ei 's/^deb /deb-src /' /etc/apt/sources.list~
cat /etc/apt/sources.list~ >> /etc/apt/sources.list
sed -i 's/^Types: deb$/Types: deb deb-src/' /etc/apt/sources.list.d/ubuntu.sources

# use this on older Ubuntu
# grep -E '^deb' /etc/apt/sources.list > /etc/apt/sources.list~
# sed -Ei 's/^deb /deb-src /' /etc/apt/sources.list~
# cat /etc/apt/sources.list~ >> /etc/apt/sources.list

apt-get -y update --fix-missing
DEBIAN_FRONTEND=noninteractive apt-get -yq install software-properties-common wget lsb-release
Expand Down
3 changes: 1 addition & 2 deletions .gitlab/ci/compilation-gcc.gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,8 @@ test-gcc-fanalyzer:
extends:
- .gitlab-shared-gcc
script:
- export CFLAGS="-Wall -Werror -g -O0 -fanalyzer -fdiagnostics-path-format=separate-events"
- ./autogen.sh
- ./configure
- ./configure CFLAGS="-Wall -Werror -g -O0 -fanalyzer -fdiagnostics-path-format=separate-events" --host=x86_64
- make -j
- make -j check-programs

Expand Down
4 changes: 3 additions & 1 deletion .gitlab/ci/gitlab-shared-docker.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.gitlab-shared-docker:
image: ubuntu:lunar
image: ubuntu:noble
tags:
- gitlab-org-docker
stage: test
Expand All @@ -19,6 +19,7 @@
variables:
COMPILER: "gcc"
COMPILER_VERSION: "13"
CC: "gcc-13"
RUN_SSH_PLUGIN_TEST: "1"

.gitlab-shared-clang:
Expand All @@ -27,4 +28,5 @@
variables:
COMPILER: "clang"
COMPILER_VERSION: "18"
CC: "clang-18"
RUN_SSH_PLUGIN_TEST: "1"

0 comments on commit 7c992fa

Please sign in to comment.