From 791fea477fc411b758b4d0c613b89bf2799e6c81 Mon Sep 17 00:00:00 2001 From: Gleb Mazovetskiy Date: Fri, 28 Feb 2025 11:12:28 +0900 Subject: [PATCH] Bump CI to Ubuntu 22.04 and minimum CMake to 3.22 Ubuntu 20.04 is going EOL in May. Ubuntu 22.04 CMake is 3.22. Debian stable CMake is 3.25. Debian oldstable (EOL in 2026) has CMake 3.25 in bullseye-backports. --- .github/workflows/Linux_aarch64.yml | 34 +++++------------------------ .github/workflows/Linux_x86.yml | 23 ++++--------------- .github/workflows/Linux_x86_64.yml | 21 ++++-------------- .github/workflows/xbox_nxdk.yml | 1 - CMake/Dependencies.cmake | 9 +------- CMake/finders/FindSDL2_image.cmake | 6 ++--- CMakeLists.txt | 4 ++-- 7 files changed, 18 insertions(+), 80 deletions(-) diff --git a/.github/workflows/Linux_aarch64.yml b/.github/workflows/Linux_aarch64.yml index a9efd69685c..b30481d8a65 100644 --- a/.github/workflows/Linux_aarch64.yml +++ b/.github/workflows/Linux_aarch64.yml @@ -25,47 +25,23 @@ concurrency: jobs: build: - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 steps: - name: Checkout uses: actions/checkout@v4 with: fetch-depth: 0 - # Work around the somewhat broken packages in the GitHub Actions Ubuntu 20.04 image. - # https://github.com/actions/runner-images/issues/4620#issuecomment-981333260 - - name: Work around broken packages - run: sudo apt-get -y install --allow-downgrades libpcre2-8-0=10.34-7 - - - name: Add clang repo - run: | - wget -qO- https://apt.llvm.org/llvm-snapshot.gpg.key | sudo tee /etc/apt/trusted.gpg.d/apt.llvm.org.asc - sudo tee /etc/apt/sources.list.d/clang.list <=2.0.0) diff --git a/CMakeLists.txt b/CMakeLists.txt index 58897f7b684..959fc6a3597 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,6 @@ -cmake_minimum_required(VERSION 3.15) +cmake_minimum_required(VERSION 3.22) -foreach(_policy CMP0111 CMP0126 CMP0135 CMP0141) +foreach(_policy CMP0135 CMP0141) if(POLICY ${_policy}) cmake_policy(SET ${_policy} NEW) set(CMAKE_POLICY_DEFAULT_${_policy} NEW)