ci: update Linux image to Fedora 41
This commit is contained in:
parent
e6da61fcd9
commit
46d89b8524
@ -1,6 +1,6 @@
|
||||
# syntax=docker/dockerfile:1
|
||||
|
||||
ARG BASE_IMAGE=fedora:40
|
||||
ARG BASE_IMAGE=fedora:41
|
||||
|
||||
FROM ${BASE_IMAGE} AS dnf-cache
|
||||
# Populate DNF cache w/ the fresh metadata and prefetch packages.
|
||||
@ -23,7 +23,7 @@ LABEL maintainer="Ben Boeckel <ben.boeckel@kitware.com>"
|
||||
|
||||
RUN --mount=type=bind,source=install_rvm.sh,target=/root/install_rvm.sh \
|
||||
--mount=type=bind,source=rvm_packages.lst,target=/root/rvm_packages.lst \
|
||||
--mount=type=cache,from=dnf-cache,source=/var/cache/dnf,target=/var/cache/dnf,sharing=private \
|
||||
--mount=type=cache,from=dnf-cache,source=/var/lib/dnf,target=/var/lib/dnf,sharing=private \
|
||||
--mount=type=tmpfs,target=/var/log \
|
||||
--mount=type=tmpfs,target=/tmp \
|
||||
sh /root/install_rvm.sh
|
||||
@ -34,7 +34,7 @@ LABEL maintainer="Kyle Edwards <kyle.edwards@kitware.com>"
|
||||
|
||||
RUN --mount=type=bind,source=install_iwyu.sh,target=/root/install_iwyu.sh \
|
||||
--mount=type=bind,source=iwyu_packages.lst,target=/root/iwyu_packages.lst \
|
||||
--mount=type=cache,from=dnf-cache,source=/var/cache/dnf,target=/var/cache/dnf,sharing=private \
|
||||
--mount=type=cache,from=dnf-cache,source=/var/lib/dnf,target=/var/lib/dnf,sharing=private \
|
||||
--mount=type=tmpfs,target=/var/log \
|
||||
--mount=type=tmpfs,target=/tmp \
|
||||
sh /root/install_iwyu.sh
|
||||
@ -45,7 +45,7 @@ LABEL maintainer="Ben Boeckel <ben.boeckel@kitware.com>"
|
||||
|
||||
RUN --mount=type=bind,source=install_deps.sh,target=/root/install_deps.sh \
|
||||
--mount=type=bind,source=deps_packages.lst,target=/root/deps_packages.lst \
|
||||
--mount=type=cache,from=dnf-cache,source=/var/cache/dnf,target=/var/cache/dnf,sharing=private \
|
||||
--mount=type=cache,from=dnf-cache,source=/var/lib/dnf,target=/var/lib/dnf,sharing=private \
|
||||
--mount=type=cache,target=/var/cache/pip \
|
||||
--mount=type=tmpfs,target=/var/log \
|
||||
--mount=type=tmpfs,target=/tmp \
|
@ -109,7 +109,6 @@ perl
|
||||
protobuf-devel protobuf-c-devel protobuf-lite-devel
|
||||
pypy2 pypy2-devel
|
||||
pypy3 pypy3-devel
|
||||
python2 python2-devel
|
||||
python3 python3-devel python3-numpy
|
||||
python3-jsmin python3-jsonschema
|
||||
ruby rubygems ruby-devel
|
@ -9,22 +9,13 @@ dnf install \
|
||||
-y \
|
||||
$(grep '^[^#]\+$' /root/deps_packages.lst)
|
||||
|
||||
# Fedora no longer packages python2 numpy.
|
||||
curl https://bootstrap.pypa.io/pip/2.7/get-pip.py -o - | python2
|
||||
pip2.7 install --disable-pip-version-check --no-input --no-compile --cache-dir /var/cache/pip numpy
|
||||
|
||||
# Remove demos and Python2 tests
|
||||
for p in Demo test; do
|
||||
rm -rf /usr/lib64/python2.7/${p}
|
||||
done
|
||||
|
||||
# Remove tests for numpy
|
||||
for v in 2.7 3.12; do
|
||||
for v in 3.13; do
|
||||
find /usr/lib64/python${v}/site-packages/numpy -type d -a -name tests -exec rm -rf {} +
|
||||
done
|
||||
|
||||
# Remove some other packages tests
|
||||
find /usr/lib64/python3.12/site-packages/breezy -type d -a -name tests -exec rm -rf {} +
|
||||
find /usr/lib64/python3.13/site-packages/breezy -type d -a -name tests -exec rm -rf {} +
|
||||
|
||||
# Perforce
|
||||
curl -L https://www.perforce.com/downloads/perforce/r21.2/bin.linux26x86_64/helix-core-server.tgz -o - \
|
@ -15,7 +15,9 @@ git clone "https://github.com/include-what-you-use/include-what-you-use.git"
|
||||
cd include-what-you-use
|
||||
readonly llvm_full_version="$( clang --version | head -n1 | cut -d' ' -f3 )"
|
||||
readonly llvm_version="$( echo "$llvm_full_version" | cut -d. -f-1 )"
|
||||
git checkout "clang_$llvm_version"
|
||||
#FIXME(IWYU): Create clang_19 branch.
|
||||
#git checkout "clang_$llvm_version"
|
||||
git checkout d2d092919f2774b5463e236e1ee9d56fb46ceb60 # 2024-10-05
|
||||
git apply <<EOF
|
||||
diff --git a/iwyu_driver.cc b/iwyu_driver.cc
|
||||
index dd4b046..cfd568a 100644
|
@ -5,6 +5,7 @@ bzip2
|
||||
findutils
|
||||
gcc-c++
|
||||
glibc-devel
|
||||
gnupg2
|
||||
libffi-devel
|
||||
libtool
|
||||
libyaml-devel
|
Loading…
Reference in New Issue
Block a user