ci: bump ubuntu runner version to ubuntu-24.04

Also bump clang to version 20.
This commit is contained in:
dundargoc
2024-10-02 15:16:13 +02:00
committed by dundargoc
parent ff7832ad3f
commit 0c9b3ef34d
4 changed files with 14 additions and 11 deletions

View File

@@ -16,7 +16,7 @@ if [[ $os == Linux ]]; then
if [[ $CC == clang ]]; then if [[ $CC == clang ]]; then
DEFAULT_CLANG_VERSION=$(echo | clang -dM -E - | grep __clang_major | awk '{print $3}') DEFAULT_CLANG_VERSION=$(echo | clang -dM -E - | grep __clang_major | awk '{print $3}')
CLANG_VERSION=18 CLANG_VERSION=20
if ((DEFAULT_CLANG_VERSION >= CLANG_VERSION)); then if ((DEFAULT_CLANG_VERSION >= CLANG_VERSION)); then
echo "Default clang version is $DEFAULT_CLANG_VERSION, which equal or larger than wanted version $CLANG_VERSION. Aborting!" echo "Default clang version is $DEFAULT_CLANG_VERSION, which equal or larger than wanted version $CLANG_VERSION. Aborting!"
exit 1 exit 1
@@ -33,7 +33,7 @@ if [[ $os == Linux ]]; then
sudo apt-get install -y locales-all cpanminus attr libattr1-dev gdb inotify-tools sudo apt-get install -y locales-all cpanminus attr libattr1-dev gdb inotify-tools
# Use default CC to avoid compilation problems when installing Python modules # Use default CC to avoid compilation problems when installing Python modules
CC=cc python3 -m pip -q install --user --upgrade pynvim CC=cc python3 -m pip -q install --user --upgrade --break-system-packages pynvim
fi fi
elif [[ $os == Darwin ]]; then elif [[ $os == Darwin ]]; then
brew update --quiet brew update --quiet

View File

@@ -28,7 +28,7 @@ env:
jobs: jobs:
lint: lint:
runs-on: ubuntu-22.04 runs-on: ubuntu-24.04
timeout-minutes: 10 timeout-minutes: 10
env: env:
CC: clang CC: clang
@@ -78,7 +78,7 @@ jobs:
run: cmake --build build --target lintc-uncrustify run: cmake --build build --target lintc-uncrustify
clang-analyzer: clang-analyzer:
runs-on: ubuntu-22.04 runs-on: ubuntu-24.04
timeout-minutes: 20 timeout-minutes: 20
env: env:
CC: clang CC: clang
@@ -104,12 +104,12 @@ jobs:
# or if github introduces a wildcard for required checks in the future. # or if github introduces a wildcard for required checks in the future.
build: build:
[ [
{ runner: ubuntu-22.04, os: ubuntu, flavor: asan, cc: clang, flags: -D ENABLE_ASAN_UBSAN=ON }, { runner: ubuntu-24.04, os: ubuntu, flavor: asan, cc: clang, flags: -D ENABLE_ASAN_UBSAN=ON },
{ runner: ubuntu-22.04, os: ubuntu, flavor: tsan, cc: clang, flags: -D ENABLE_TSAN=ON }, { runner: ubuntu-24.04, os: ubuntu, flavor: tsan, cc: clang, flags: -D ENABLE_TSAN=ON },
{ runner: ubuntu-22.04, os: ubuntu, cc: gcc }, { runner: ubuntu-24.04, os: ubuntu, cc: gcc },
{ runner: macos-12, os: macos, flavor: 12, cc: clang, flags: -D CMAKE_FIND_FRAMEWORK=NEVER, deps_flags: -D CMAKE_FIND_FRAMEWORK=NEVER }, { runner: macos-12, os: macos, flavor: 12, cc: clang, flags: -D CMAKE_FIND_FRAMEWORK=NEVER, deps_flags: -D CMAKE_FIND_FRAMEWORK=NEVER },
{ runner: macos-14, os: macos, cc: clang, flags: -D CMAKE_FIND_FRAMEWORK=NEVER, deps_flags: -D CMAKE_FIND_FRAMEWORK=NEVER }, { runner: macos-14, os: macos, cc: clang, flags: -D CMAKE_FIND_FRAMEWORK=NEVER, deps_flags: -D CMAKE_FIND_FRAMEWORK=NEVER },
{ runner: ubuntu-22.04, os: ubuntu, flavor: puc-lua, cc: gcc, deps_flags: -D USE_BUNDLED_LUAJIT=OFF -D USE_BUNDLED_LUA=ON, flags: -D PREFER_LUA=ON }, { runner: ubuntu-24.04, os: ubuntu, flavor: puc-lua, cc: gcc, deps_flags: -D USE_BUNDLED_LUAJIT=OFF -D USE_BUNDLED_LUA=ON, flags: -D PREFER_LUA=ON },
] ]
test: [unittest, functionaltest, oldtest] test: [unittest, functionaltest, oldtest]
exclude: exclude:
@@ -202,7 +202,7 @@ jobs:
# single-config generators so it's nice to have a small sanity check for # single-config generators so it's nice to have a small sanity check for
# multi-config. # multi-config.
build-types: build-types:
runs-on: ubuntu-22.04 runs-on: ubuntu-24.04
timeout-minutes: 10 timeout-minutes: 10
env: env:
CC: gcc CC: gcc
@@ -228,7 +228,7 @@ jobs:
run: cmake --build build --config MinSizeRel run: cmake --build build --config MinSizeRel
with-external-deps: with-external-deps:
runs-on: ubuntu-22.04 runs-on: ubuntu-24.04
timeout-minutes: 10 timeout-minutes: 10
env: env:
CC: gcc CC: gcc

View File

@@ -12,7 +12,7 @@ Support *support*
Supported platforms *supported-platforms* Supported platforms *supported-platforms*
`System` `Tier` `Versions` `Tested versions` `System` `Tier` `Versions` `Tested versions`
Linux 1 >= 2.6.32, glibc >= 2.12 Ubuntu 22.04 Linux 1 >= 2.6.32, glibc >= 2.12 Ubuntu 24.04
macOS (Intel) 1 >= 11 macOS 12 macOS (Intel) 1 >= 11 macOS 12
macOS (M1) 1 >= 11 macOS 14 macOS (M1) 1 >= 11 macOS 14
Windows 64-bit 1 >= Windows 10 Version 1809 Windows Server 2022 Windows 64-bit 1 >= Windows 10 Version 1809 Windows Server 2022

View File

@@ -862,8 +862,11 @@ add_glob_target(
-clang-analyzer-core.NullDereference, -clang-analyzer-core.NullDereference,
-clang-analyzer-core.UndefinedBinaryOperatorResult, -clang-analyzer-core.UndefinedBinaryOperatorResult,
-clang-analyzer-core.uninitialized.Assign, -clang-analyzer-core.uninitialized.Assign,
-clang-analyzer-optin.core.EnumCastOutOfRange,
-clang-analyzer-optin.performance.Padding, -clang-analyzer-optin.performance.Padding,
-clang-analyzer-security.insecureAPI.strcpy, -clang-analyzer-security.insecureAPI.strcpy,
-clang-analyzer-unix.StdCLibraryFunctions,
-clang-analyzer-unix.Stream,
${CLANG_ANALYZER_IGNORE} ${CLANG_ANALYZER_IGNORE}
' '
EXCLUDE ${EXCLUDE_CLANG_TIDY}) EXCLUDE ${EXCLUDE_CLANG_TIDY})