From 265349a5e09154e6f84a12d254e7a6ca91b282ca Mon Sep 17 00:00:00 2001 From: maximusron Date: Thu, 22 Aug 2024 10:12:24 +0200 Subject: [PATCH] [ci] Update Linux CI to Ubuntu 24 --- .github/workflows/ci.yml | 101 ++++++++++++++++++++------------------- 1 file changed, 52 insertions(+), 49 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 90b2d3ca..34f8fb61 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -21,37 +21,37 @@ jobs: fail-fast: false matrix: include: - - name: ubu22-x86-gcc12-clang-repl-19 - os: ubuntu-22.04 - compiler: gcc-12 + - name: ubu24-x86-gcc12-clang-repl-19 + os: ubuntu-24.04 + compiler: gcc-13 clang-runtime: '19' cling: Off cppyy: On coverage: true - - name: ubu22-x86-gcc12-clang-repl-18 - os: ubuntu-22.04 - compiler: gcc-12 + - name: ubu24-x86-gcc12-clang-repl-18 + os: ubuntu-24.04 + compiler: gcc-13 clang-runtime: '18' cling: Off cppyy: On coverage: true - - name: ubu22-x86-gcc12-clang-repl-17 - os: ubuntu-22.04 - compiler: gcc-12 + - name: ubu24-x86-gcc13-clang-repl-17 + os: ubuntu-24.04 + compiler: gcc-13 clang-runtime: '17' cling: Off cppyy: On coverage: true - - name: ubu22-x86-gcc12-clang-repl-16 - os: ubuntu-22.04 - compiler: gcc-12 + - name: ubu24-x86-gcc13-clang-repl-16 + os: ubuntu-24.04 + compiler: gcc-13 clang-runtime: '16' cling: Off cppyy: On coverage: true - - name: ubu22-x86-gcc9-clang13-cling - os: ubuntu-22.04 - compiler: gcc-9 + - name: ubu24-x86-gcc13-clang13-cling + os: ubuntu-24.04 + compiler: gcc-13 clang-runtime: '13' cling: On cling-version: '1.0' @@ -318,6 +318,7 @@ jobs: if: ${{ runner.os == 'Linux' && steps.cache.outputs.cache-hit != 'true' }} run: | # Install deps + sudo apt remove needrestart sudo apt-get update sudo apt-get install valgrind sudo apt-get autoremove @@ -494,35 +495,35 @@ jobs: fail-fast: false matrix: include: - - name: ubu22-x86-gcc12-clang-repl-19-cppyy - os: ubuntu-22.04 - compiler: gcc-12 + - name: ubu24-x86-gcc13-clang-repl-19-cppyy + os: ubuntu-24.04 + compiler: gcc-13 clang-runtime: '19' cling: Off cppyy: On coverage: true - - name: ubu22-x86-gcc12-clang-repl-18-cppyy - os: ubuntu-22.04 - compiler: gcc-12 + - name: ubu24-x86-gcc12-clang-repl-18-cppyy + os: ubuntu-24.04 + compiler: gcc-13 clang-runtime: '18' cling: Off cppyy: On coverage: true - - name: ubu22-x86-gcc12-clang-repl-17-cppyy - os: ubuntu-22.04 - compiler: gcc-12 + - name: ubu24-x86-gcc13-clang-repl-17-cppyy + os: ubuntu-24.04 + compiler: gcc-13 clang-runtime: '17' cling: Off cppyy: On - - name: ubu22-x86-gcc12-clang-repl-16-cppyy - os: ubuntu-22.04 - compiler: gcc-12 + - name: ubu24-x86-gcc13-clang-repl-16-cppyy + os: ubuntu-24.04 + compiler: gcc-13 clang-runtime: '16' cling: Off cppyy: On - - name: ubu22-x86-gcc9-clang13-cling-cppyy - os: ubuntu-22.04 - compiler: gcc-9 + - name: ubu24-x86-gcc13-clang13-cling-cppyy + os: ubuntu-24.04 + compiler: gcc-13 clang-runtime: '13' cling: On cling-version: '1.0' @@ -793,7 +794,7 @@ jobs: if: runner.os == 'Linux' run: | # Install deps - sudo apt-get update + sudo apt remove needrestart sudo apt-get install git g++ debhelper devscripts gnupg python3 sudo apt-get install -y libc6-dbg sudo snap install valgrind --classic @@ -834,7 +835,7 @@ jobs: - name: Setup code coverage if: ${{ success() && (matrix.coverage == true) }} run: | - sudo apt install lcov + sudo apt-get install -y lcov echo "CODE_COVERAGE=1" >> $GITHUB_ENV echo "BUILD_TYPE=Debug" >> $GITHUB_ENV @@ -1015,6 +1016,9 @@ jobs: run: | python3 -m venv .venv source .venv/bin/activate + python -m pip install --upgrade pip + pip install setuptools + pip install wheel # Install CPyCppyy git clone --depth=1 https://github.com/compiler-research/CPyCppyy.git mkdir CPyCppyy/build @@ -1034,7 +1038,7 @@ jobs: # Install cppyy git clone --depth=1 https://github.com/compiler-research/cppyy.git cd cppyy - python -m pip install --upgrade . --no-deps + python -m pip install --upgrade . --no-deps --no-build-isolation cd .. - name: Run cppyy on Unix Systems if: ${{ (runner.os != 'windows') && (matrix.cppyy == 'On') }} @@ -1053,7 +1057,6 @@ jobs: cd cppyy/test echo ::group::Prepare For Testing make all - python -m pip install --upgrade pip python -m pip install pytest python -m pip install pytest-xdist python -m pip install numba @@ -1125,33 +1128,33 @@ jobs: fail-fast: false matrix: include: - - name: ubu22-x86-gcc12-clang-repl-19-emscripten_wasm - os: ubuntu-22.04 - compiler: gcc-12 + - name: ubu24-x86-gcc13-clang-repl-19-emscripten_wasm + os: ubuntu-24.04 + compiler: gcc-13 clang-runtime: '19' cling: Off micromamba_shell_init: bash - - name: ubu22-x86-gcc12-clang-repl-18-emscripten_wasm - os: ubuntu-22.04 - compiler: gcc-12 + - name: ubu24-x86-gcc13-clang-repl-18-emscripten_wasm + os: ubuntu-24.04 + compiler: gcc-13 clang-runtime: '18' cling: Off micromamba_shell_init: bash - - name: ubu22-x86-gcc12-clang-repl-17-emscripten_wasm - os: ubuntu-22.04 - compiler: gcc-12 + - name: ubu24-x86-gcc13-clang-repl-17-emscripten_wasm + os: ubuntu-24.04 + compiler: gcc-13 clang-runtime: '17' cling: Off micromamba_shell_init: bash - - name: ubu22-x86-gcc12-clang-repl-16-emscripten_wasm - os: ubuntu-22.04 - compiler: gcc-12 + - name: ubu24-x86-gcc13-clang-repl-16-emscripten_wasm + os: ubuntu-24.04 + compiler: gcc-13 clang-runtime: '16' cling: Off micromamba_shell_init: bash - - name: ubu22-x86-gcc9-clang13-cling-emscripten_wasm - os: ubuntu-22.04 - compiler: gcc-9 + - name: ubu24-x86-gcc13-clang13-cling-emscripten_wasm + os: ubuntu-24.04 + compiler: gcc-13 clang-runtime: '13' cling: On cling-version: '1.0'