Skip to content

Commit 6f30e73

Browse files
committed
chore: see if we can switch CI to ubuntu 24.04
1 parent 202e6f7 commit 6f30e73

File tree

3 files changed

+17
-13
lines changed

3 files changed

+17
-13
lines changed

.docker/Dockerfile

+8-4
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,23 @@
11
# syntax=docker/dockerfile:1
22
ARG ARCH=amd64
3-
FROM $ARCH/ubuntu:23.10
4-
RUN apt update && apt install -y gnupg wget software-properties-common
5-
RUN wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null | gpg --dearmor - | tee /etc/apt/trusted.gpg.d/kitware.gpg >/dev/null
6-
RUN apt-add-repository 'deb https://apt.kitware.com/ubuntu/ jammy main'
3+
FROM $ARCH/ubuntu:24.04
4+
RUN apt update
5+
RUN apt upgrade -y
6+
RUN apt install -y gnupg wget software-properties-common apt-utils
7+
RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections
78
RUN apt install -y \
89
gcc-11 \
910
g++-11 \
1011
gcc-12 \
1112
g++-12 \
1213
gcc-13 \
1314
g++-13 \
15+
gcc-14 \
16+
g++-14 \
1417
clang-15 \
1518
clang-16 \
1619
clang-17 \
20+
clang-18 \
1721
git \
1822
vim \
1923
zstd \

.docker/build-linux.sh

+4-4
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,14 @@ esac
3131

3232
case "-$BUILD_TYPE-" in
3333
*-gcc-*)
34-
export CC=gcc-13 CXX=g++-13
34+
export CC=gcc-14 CXX=g++-14
3535
export COMPILER=gcc
3636
;;
3737
*-oldgcc-*)
3838
export CC=gcc-11 CXX=g++-11
3939
;;
4040
*-clang-*)
41-
export CC=clang-17 CXX=clang++-17
41+
export CC=clang-18 CXX=clang++-18
4242
export COMPILER=clang
4343
;;
4444
*-oldclang-*)
@@ -114,9 +114,9 @@ if [[ "-$BUILD_TYPE-" == *-coverage-* ]]; then
114114
unset LLVM_PROFILE_FILE
115115
rm -rf /tmp-runner/coverage
116116
mkdir -p /tmp-runner/coverage
117-
llvm-profdata-17 merge -sparse profile/* -o dwarfs.profdata
117+
llvm-profdata-18 merge -sparse profile/* -o dwarfs.profdata
118118
for binary in mkdwarfs dwarfs dwarfsck dwarfsextract *_test ricepp/ricepp_test; do
119-
llvm-cov-17 show -instr-profile=dwarfs.profdata $binary >/tmp-runner/coverage/$(basename $binary).txt
119+
llvm-cov-18 show -instr-profile=dwarfs.profdata $binary >/tmp-runner/coverage/$(basename $binary).txt
120120
done
121121
fi
122122

.docker/install-static-libs.sh

+5-5
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ FILE_VERSION=5.45
1010
FILE_SHA512=12611a59ff766c22a55db4b4a9f80f95a0a2e916a1d8593612c6ead32c247102a8fdc23693c6bf81bda9b604d951a62c0051e91580b1b79e190a3504c0efc20a
1111
LIBARCHIVE_VERSION=3.7.2
1212
FLAC_VERSION=1.4.3
13-
LIBUNWIND_VERSION=1.7.2
13+
LIBUNWIND_VERSION=1.8.1
1414
# BENCHMARK_VERSION=1.8.2
1515

1616
RETRY=0
@@ -34,11 +34,11 @@ wget https://github.com/libunwind/libunwind/releases/download/v${LIBUNWIND_VERSI
3434

3535
for COMPILER in clang gcc; do
3636
if [[ "$COMPILER" == "clang" ]]; then
37-
export CC=clang-17
38-
export CXX=clang++-17
37+
export CC=clang-18
38+
export CXX=clang++-18
3939
elif [[ "$COMPILER" == "gcc" ]]; then
40-
export CC=gcc-13
41-
export CXX=g++-13
40+
export CC=gcc-14
41+
export CXX=g++-14
4242
else
4343
echo "Unknown compiler: $COMPILER"
4444
exit 1

0 commit comments

Comments
 (0)