From ad7fbd7eb17db2413296a9916c204be454ad25fb Mon Sep 17 00:00:00 2001 From: Aaron Jomy Date: Mon, 21 Oct 2024 14:09:01 +0200 Subject: [PATCH] [ci] Add latest cling versions(LLVM 16, 18) --- .github/workflows/ci.yml | 254 +++++++++++++++++++++++++++++++-------- 1 file changed, 203 insertions(+), 51 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 90b2d3ca..5b91ca27 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -49,12 +49,28 @@ jobs: cling: Off cppyy: On coverage: true + - name: ubu22-x86-gcc9-clang18-cling + os: ubuntu-22.04 + compiler: gcc-12 + clang-runtime: '18' + cling: On + cling-version: 'refs/heads/master' + cppyy: On + coverage: true + - name: ubu22-x86-gcc9-clang16-cling + os: ubuntu-22.04 + compiler: gcc-12 + clang-runtime: '16' + cling: On + cling-version: 'v1.1' + cppyy: On + coverage: true - name: ubu22-x86-gcc9-clang13-cling os: ubuntu-22.04 compiler: gcc-9 clang-runtime: '13' cling: On - cling-version: '1.0' + cling-version: 'v1.0' cppyy: On coverage: true - name: win2022-msvc-clang-repl-19 @@ -81,74 +97,115 @@ jobs: clang-runtime: '16' cling: Off cppyy: Off - - name: win2022-msvc-cling + - name: win2022-msvc-cling-18 + os: windows-2022 + compiler: msvc + clang-runtime: '18' + cling: On + cling-version: 'refs/heads/master' + - name: win2022-msvc-cling-16 + os: windows-2022 + compiler: msvc + clang-runtime: '16' + cling: On + cling-version: 'v1.1' + cppyy: Off + - name: win2022-msvc-cling-13 os: windows-2022 compiler: msvc clang-runtime: '13' cling: On - cling-version: '1.0' + cling-version: 'v1.0' cppyy: Off - - name: osx14-arm-clang-clang-repl-19 + - name: osx14-arm-clang-repl-19 os: macos-14 compiler: clang clang-runtime: '19' cling: Off cppyy: On - - name: osx14-arm-clang-clang-repl-18 + - name: osx14-arm-clang-repl-18 os: macos-14 compiler: clang clang-runtime: '18' cling: Off cppyy: On - - name: osx14-arm-clang-clang-repl-17 + - name: osx14-arm-clang-repl-17 os: macos-14 compiler: clang clang-runtime: '17' cling: Off cppyy: On - - name: osx14-arm-clang-clang-repl-16 + - name: osx14-arm-clang-repl-16 os: macos-14 compiler: clang clang-runtime: '16' cling: Off cppyy: On - - name: osx14-arm-clang-clang13-cling + - name: osx14-arm-clang18-cling + os: macos-14 + compiler: clang + clang-runtime: '18' + cling: On + cling-version: 'refs/heads/master' + cppyy: On + - name: osx14-arm-clang16-cling + os: macos-14 + compiler: clang + clang-runtime: '16' + cling: On + cling-version: 'v1.1' + cppyy: On + - name: osx14-arm-cling-13 os: macos-14 compiler: clang clang-runtime: '13' cling: On - cling-version: '1.0' + cling-version: 'v1.0' cppyy: On - - name: osx13-x86-clang-clang-repl-19 + - name: osx13-x86-clang-repl-19 os: macos-13 compiler: clang clang-runtime: '19' cling: Off cppyy: On - - name: osx13-x86-clang-clang-repl-18 + - name: osx13-x86-clang-repl-18 os: macos-13 compiler: clang clang-runtime: '18' cling: Off cppyy: On - - name: osx13-x86-clang-clang-repl-17 + - name: osx13-x86-clang-repl-17 os: macos-13 compiler: clang clang-runtime: '17' cling: Off cppyy: On - - name: osx13-x86-clang-clang-repl-16 + - name: osx13-x86-clang-repl-16 os: macos-13 compiler: clang clang-runtime: '16' cling: Off cppyy: On - - name: osx13-x86-clang-clang13-cling + - name: osx13-x86-clang18-cling + os: macos-13 + compiler: clang + clang-runtime: '18' + cling: On + cling-version: 'refs/heads/master' + cppyy: On + - name: osx13-x86-clang16-cling + os: macos-13 + compiler: clang + clang-runtime: '16' + cling: On + cling-version: 'v1.1' + cppyy: On + - name: osx13-x86-clang13-cling os: macos-13 compiler: clang clang-runtime: '13' cling: On - cling-version: '1.0' + cling-version: 'v1.0' cppyy: On steps: @@ -170,7 +227,7 @@ jobs: cling_on=$(echo "${{ matrix.cling }}" | tr '[:lower:]' '[:upper:]') if [[ "$cling_on" == "ON" ]]; then - export CLING_HASH=$(git ls-remote https://github.com/root-project/cling.git refs/tags/v${{ matrix.cling-version }} | tr '\t' '-') + export CLING_HASH=$(git ls-remote https://github.com/root-project/cling.git ${{ matrix.cling-version }} | tr '\t' '-') export LLVM_HASH=$(git ls-remote https://github.com/root-project/llvm-project.git cling-llvm${{ matrix.clang-runtime}} | tr '\t' '-') else export CLING_HASH="Repl" @@ -192,7 +249,7 @@ jobs: if ( "${{ matrix.cling }}" -imatch "On" ) { - $env:CLING_HASH_TEMP = ( git ls-remote https://github.com/root-project/cling.git refs/tags/v${{ matrix.cling-version }} ) + $env:CLING_HASH_TEMP = ( git ls-remote https://github.com/root-project/cling.git ${{ matrix.cling-version }} ) $env:CLING_HASH = $env:CLING_HASH_TEMP -replace "\t","-" } else @@ -342,7 +399,7 @@ jobs: if [[ "${cling_on}" == "ON" ]]; then git clone https://github.com/root-project/cling.git cd ./cling - git checkout tags/v${{ matrix.cling-version }} + git checkout ${{ matrix.cling-version }} cd .. git clone --depth=1 -b cling-llvm${{ matrix.clang-runtime }} https://github.com/root-project/llvm-project.git else # repl @@ -406,7 +463,7 @@ jobs: { git clone https://github.com/root-project/cling.git cd ./cling - git checkout tags/v${{ matrix.cling-version }} + git checkout ${{ matrix.cling-version }} cd .. git clone --depth=1 -b cling-llvm${{ matrix.clang-runtime }} https://github.com/root-project/llvm-project.git $env:PWD_DIR= $PWD.Path @@ -520,12 +577,29 @@ jobs: clang-runtime: '16' cling: Off cppyy: On + + - name: ubu22-x86-gcc9-clang18-cling-cppyy + os: ubuntu-22.04 + compiler: gcc-12 + clang-runtime: '18' + cling: On + cling-version: 'refs/heads/master' + cppyy: On + + - name: ubu22-x86-gcc9-clang16-cling-cppyy + os: ubuntu-22.04 + compiler: gcc-12 + clang-runtime: '16' + cling: On + cling-version: 'v1.1' + cppyy: On + - name: ubu22-x86-gcc9-clang13-cling-cppyy os: ubuntu-22.04 compiler: gcc-9 clang-runtime: '13' cling: On - cling-version: '1.0' + cling-version: 'v1.0' cppyy: On #FIXME: Windows CppInterOp tests expected to fail #until https://github.com/compiler-research/CppInterOp/issues/188 is solved @@ -565,12 +639,26 @@ jobs: # clang-runtime: '16' # cling: Off # cppyy: On - - name: win2022-msvc-cling + - name: win2022-msvc-cling-18 + os: windows-2022 + compiler: msvc + clang-runtime: '18' + cling: On + cling-version: 'refs/heads/master' + cppyy: Off + - name: win2022-msvc-cling-16 + os: windows-2022 + compiler: msvc + clang-runtime: '16' + cling: On + cling-version: 'v1.1' + cppyy: Off + - name: win2022-msvc-cling-13 os: windows-2022 compiler: msvc clang-runtime: '13' cling: On - cling-version: '1.0' + cling-version: 'v1.0' cppyy: Off #- name: win2022-msvc-cling-cppyy # os: windows-2022 @@ -579,67 +667,93 @@ jobs: # cling: On # cling-version: '1.0' # cppyy: On - - name: osx14-arm-clang-clang-repl-19-cppyy + - name: osx14-arm-clang-repl-19-cppyy os: macos-14 compiler: clang clang-runtime: '19' cling: Off cppyy: On - - name: osx14-arm-clang-clang-repl-18-cppyy + - name: osx14-arm-clang-repl-18-cppyy os: macos-14 compiler: clang clang-runtime: '18' cling: Off cppyy: On - - name: osx14-arm-clang-clang-repl-17-cppyy + - name: osx14-arm-clang-repl-17-cppyy os: macos-14 compiler: clang clang-runtime: '17' cling: Off cppyy: On - - name: osx14-arm-clang-clang-repl-16-cppyy + - name: osx14-arm-clang-repl-16-cppyy os: macos-14 compiler: clang clang-runtime: '16' cling: Off cppyy: On - - name: osx14-arm-clang-clang13-cling-cppyy + - name: osx14-arm-clang18-cling-cppyy + os: macos-14 + compiler: clang + clang-runtime: '18' + cling: On + cling-version: 'refs/heads/master' + - name: osx14-arm-clang16-cling-cppyy + os: macos-14 + compiler: clang + clang-runtime: '16' + cling: On + cling-version: 'v1.1' + - name: osx14-arm-clang13-cling-cppyy os: macos-14 compiler: clang clang-runtime: '13' cling: On - cling-version: '1.0' + cling-version: 'v1.0' cppyy: On - - name: osx13-x86-clang-clang-repl-19-cppyy + - name: osx13-x86-clang-repl-19-cppyy os: macos-13 compiler: clang clang-runtime: '19' cling: Off cppyy: On - - name: osx13-x86-clang-clang-repl-18-cppyy + - name: osx13-x86-clang-repl-18-cppyy os: macos-13 compiler: clang clang-runtime: '18' cling: Off cppyy: On - - name: osx13-x86-clang-clang-repl-17-cppyy + - name: osx13-x86-clang-repl-17-cppyy os: macos-13 compiler: clang clang-runtime: '17' cling: Off cppyy: On - - name: osx13-x86-clang-clang-repl-16-cppyy + - name: osx13-x86-clang-repl-16-cppyy os: macos-13 compiler: clang clang-runtime: '16' cling: Off cppyy: On - - name: osx13-x86-clang-clang13-cling-cppyy + - name: osx13-x86-clang18-cling-cppyy + os: macos-13 + compiler: clang + clang-runtime: '18' + cling: On + cling-version: 'refs/heads/master' + cppyy: On + - name: osx13-x86-clang16-cling-cppyy + os: macos-13 + compiler: clang + clang-runtime: '16' + cling: On + cling-version: 'v1.1' + cppyy: On + - name: osx13-x86-clang13-cling-cppyy os: macos-13 compiler: clang clang-runtime: '13' cling: On - cling-version: '1.0' + cling-version: 'v1.0' cppyy: On steps: @@ -661,7 +775,7 @@ jobs: cling_on=$(echo "${{ matrix.cling }}" | tr '[:lower:]' '[:upper:]') if [[ "$cling_on" == "ON" ]]; then - export CLING_HASH=$(git ls-remote https://github.com/root-project/cling.git refs/tags/v${{ matrix.cling-version }} | tr '\t' '-') + export CLING_HASH=$(git ls-remote https://github.com/root-project/cling.git ${{ matrix.cling-version }} | tr '\t' '-') export LLVM_HASH=$(git ls-remote https://github.com/root-project/llvm-project.git cling-llvm${{ matrix.clang-runtime}} | tr '\t' '-') else export CLING_HASH="Repl" @@ -683,7 +797,7 @@ jobs: if ( "${{ matrix.cling }}" -imatch "On" ) { - $env:CLING_HASH_TEMP = ( git ls-remote https://github.com/root-project/cling.git refs/tags/v${{ matrix.cling-version }} ) + $env:CLING_HASH_TEMP = ( git ls-remote https://github.com/root-project/cling.git ${{ matrix.cling-version }} ) $env:CLING_HASH = $env:CLING_HASH_TEMP -replace "\t","-" } else @@ -1149,74 +1263,112 @@ jobs: clang-runtime: '16' cling: Off micromamba_shell_init: bash + - name: ubu22-x86-gcc9-clang18-cling-emscripten_wasm + os: ubuntu-22.04 + compiler: gcc-12 + clang-runtime: '18' + cling: On + cling-version: 'refs/heads/master' + - name: ubu22-x86-gcc9-clang16-cling-emscripten_wasm + os: ubuntu-22.04 + compiler: gcc-12 + clang-runtime: '16' + cling: On + cling-version: 'v1.1' - name: ubu22-x86-gcc9-clang13-cling-emscripten_wasm os: ubuntu-22.04 compiler: gcc-9 clang-runtime: '13' cling: On - cling-version: '1.0' + cling-version: 'v1.0' micromamba_shell_init: bash - - name: osx14-arm-clang-clang-repl-19-emscripten_wasm + - name: osx14-arm-clang-repl-19-emscripten_wasm os: macos-14 compiler: clang clang-runtime: '19' cling: Off micromamba_shell_init: bash - - name: osx14-arm-clang-clang-repl-18-emscripten_wasm + - name: osx14-arm-clang-repl-18-emscripten_wasm os: macos-14 compiler: clang clang-runtime: '18' cling: Off micromamba_shell_init: bash - - name: osx14-arm-clang-clang-repl-17-emscripten_wasm + - name: osx14-arm-clang-repl-17-emscripten_wasm os: macos-14 compiler: clang clang-runtime: '17' cling: Off micromamba_shell_init: bash - - name: osx14-arm-clang-clang-repl-16-emscripten_wasm + - name: osx14-arm-clang-repl-16-emscripten_wasm os: macos-14 compiler: clang clang-runtime: '16' cling: Off - micromamba_shell_init: bash - - name: osx14-arm-clang-clang13-cling-emscripten_wasm + micromamba_shell_init: bash + - name: osx14-arm-clang18-cling-emscripten_wasm + os: macos-14 + compiler: clang + clang-runtime: '18' + cling: On + cling-version: 'refs/heads/master' + - name: osx14-arm-clang16-cling-emscripten_wasm + os: macos-14 + compiler: clang + clang-runtime: '16' + cling: On + cling-version: 'v1.1' + - name: osx14-arm-clang13-cling-emscripten_wasm os: macos-14 compiler: clang clang-runtime: '13' cling: On - cling-version: '1.0' + cling-version: 'v1.0' micromamba_shell_init: bash - - name: osx13-x86-clang-clang-repl-19-emscripten_wasm + - name: osx13-x86-clang-repl-19-emscripten_wasm os: macos-13 compiler: clang clang-runtime: '19' cling: Off micromamba_shell_init: bash - - name: osx13-x86-clang-clang-repl-18-emscripten_wasm + - name: osx13-x86-clang-repl-18-emscripten_wasm os: macos-13 compiler: clang clang-runtime: '18' cling: Off micromamba_shell_init: bash - - name: osx13-x86-clang-clang-repl-17-emscripten_wasm + - name: osx13-x86-clang-repl-17-emscripten_wasm os: macos-13 compiler: clang clang-runtime: '17' cling: Off micromamba_shell_init: bash - - name: osx13-x86-clang-clang-repl-16-emscripten_wasm + - name: osx13-x86-clang-repl-16-emscripten_wasm os: macos-13 compiler: clang clang-runtime: '16' cling: Off micromamba_shell_init: bash - - name: osx13-x86-clang-clang13-cling-emscripten_wasm + - name: osx13-x86-clang18-cling-emscripten_wasm + os: macos-13 + compiler: clang + clang-runtime: '18' + cling: On + cling-version: 'refs/heads/master' + micromamba_shell_init: bash + - name: osx13-x86-clang16-cling-emscripten_wasm + os: macos-13 + compiler: clang + clang-runtime: '16' + cling: On + cling-version: 'v1.1' + micromamba_shell_init: bash + - name: osx13-x86-clang13-cling-emscripten_wasm os: macos-13 compiler: clang clang-runtime: '13' cling: On - cling-version: '1.0' + cling-version: 'v1.0' micromamba_shell_init: bash steps: @@ -1238,7 +1390,7 @@ jobs: cling_on=$(echo "${{ matrix.cling }}" | tr '[:lower:]' '[:upper:]') if [[ "$cling_on" == "ON" ]]; then - export CLING_HASH=$(git ls-remote https://github.com/root-project/cling.git refs/tags/v${{ matrix.cling-version }} | tr '\t' '-') + export CLING_HASH=$(git ls-remote https://github.com/root-project/cling.git ${{ matrix.cling-version }} | tr '\t' '-') export LLVM_HASH=$(git ls-remote https://github.com/root-project/llvm-project.git cling-llvm${{ matrix.clang-runtime}} | tr '\t' '-') else export CLING_HASH="Repl"