2626 install_tbb : ['ON']
2727 disable_hwloc : ['OFF']
2828 link_hwloc_statically : ['OFF']
29+ cmake_ver : ['latest']
2930 include :
3031 - os : ' ubuntu-22.04'
3132 build_type : Release
3637 install_tbb : ' ON'
3738 disable_hwloc : ' OFF'
3839 link_hwloc_statically : ' OFF'
40+ # check minimum supported cmake version
41+ cmake_ver : ' 3.14.0'
3942 - os : ' ubuntu-22.04'
4043 build_type : Release
4144 compiler : {c: gcc, cxx: g++}
4548 install_tbb : ' ON'
4649 disable_hwloc : ' OFF'
4750 link_hwloc_statically : ' OFF'
51+ cmake_ver : ' latest'
4852 - os : ' ubuntu-24.04'
4953 build_type : Debug
5054 compiler : {c: gcc, cxx: g++}
5458 install_tbb : ' ON'
5559 disable_hwloc : ' OFF'
5660 link_hwloc_statically : ' OFF'
61+ cmake_ver : ' latest'
5762 # test level_zero_provider='OFF' and cuda_provider='OFF'
5863 - os : ' ubuntu-22.04'
5964 build_type : Release
6469 install_tbb : ' ON'
6570 disable_hwloc : ' OFF'
6671 link_hwloc_statically : ' OFF'
72+ cmake_ver : ' latest'
6773 # test icx compiler
6874 - os : ' ubuntu-22.04'
6975 build_type : Release
7480 install_tbb : ' ON'
7581 disable_hwloc : ' OFF'
7682 link_hwloc_statically : ' OFF'
83+ cmake_ver : ' latest'
7784 # test lld linker
7885 - os : ' ubuntu-24.04'
7986 build_type : Release
8592 disable_hwloc : ' OFF'
8693 link_hwloc_statically : ' OFF'
8794 llvm_linker : ' -DCMAKE_EXE_LINKER_FLAGS="-fuse-ld=lld" -DCMAKE_MODULE_LINKER_FLAGS="-fuse-ld=lld" -DCMAKE_SHARED_LINKER_FLAGS="-fuse-ld=lld"'
88- # test without installing TBB
95+ cmake_ver : ' latest'
96+ # test without installing TBB
8997 - os : ' ubuntu-22.04'
9098 build_type : Release
9199 compiler : {c: gcc, cxx: g++}
95103 install_tbb : ' OFF'
96104 disable_hwloc : ' OFF'
97105 link_hwloc_statically : ' OFF'
106+ cmake_ver : ' latest'
98107 - os : ' ubuntu-22.04'
99108 build_type : Debug
100109 compiler : {c: gcc, cxx: g++}
@@ -104,6 +113,7 @@ jobs:
104113 install_tbb : ' ON'
105114 disable_hwloc : ' ON'
106115 link_hwloc_statically : ' OFF'
116+ cmake_ver : ' latest'
107117 - os : ' ubuntu-22.04'
108118 build_type : Release
109119 compiler : {c: gcc, cxx: g++}
@@ -113,6 +123,7 @@ jobs:
113123 install_tbb : ' ON'
114124 disable_hwloc : ' OFF'
115125 link_hwloc_statically : ' ON'
126+ cmake_ver : ' latest'
116127 runs-on : ${{matrix.os}}
117128
118129 steps :
@@ -124,7 +135,15 @@ jobs:
124135 - name : Install apt packages
125136 run : |
126137 sudo apt-get update
127- sudo apt-get install -y clang cmake libnuma-dev lcov
138+ sudo apt-get install -y clang libnuma-dev lcov
139+
140+ - name : Install cmake (minimum supported version)
141+ if : matrix.cmake_ver != 'latest'
142+ run : |
143+ sudo apt-get remove --purge -y cmake
144+ wget https://github.com/Kitware/CMake/releases/download/v${{matrix.cmake_ver}}/cmake-${{matrix.cmake_ver}}-Linux-x86_64.sh
145+ chmod +x cmake-${{matrix.cmake_ver}}-Linux-x86_64.sh
146+ sudo ./cmake-${{matrix.cmake_ver}}-Linux-x86_64.sh --skip-license --prefix=/usr/local
128147
129148 - name : Install hwloc
130149 if : matrix.disable_hwloc == 'OFF'
0 commit comments