1818 name : Ubuntu
1919 runs-on : ubuntu-latest
2020 container :
21- image : ghcr.io/bb-ur/umf-ubuntu-${{ matrix.ubuntu_ver }}:latest
21+ # image: ghcr.io/bb-ur/umf-ubuntu-${{ matrix.ubuntu_ver }}:latest
22+ image : ghcr.io/rbanka1/umf-ubuntu-${{ matrix.ubuntu_ver }}:latest # test
2223 options : --user root --privileged
2324 volumes :
2425 - ${{ github.workspace }}:${{ github.workspace }}
@@ -137,16 +138,37 @@ jobs:
137138 with :
138139 fetch-depth : 0
139140
141+ - name : Install cmake (non-default version)
142+ if : matrix.cmake_ver != 'default'
143+ run : |
144+ sudo apt-get remove --purge -y cmake
145+ sudo apt-get update
146+ sudo apt-get install -y wget
147+ wget https://github.com/Kitware/CMake/releases/download/v${{matrix.cmake_ver}}/cmake-${{matrix.cmake_ver}}-Linux-x86_64.sh
148+ chmod +x cmake-${{matrix.cmake_ver}}-Linux-x86_64.sh
149+ sudo ./cmake-${{matrix.cmake_ver}}-Linux-x86_64.sh --skip-license --prefix=/usr/local
150+
151+ - name : Install TBB apt package
152+ if : matrix.install_tbb == 'OFF'
153+ run : |
154+ sudo apt-get remove --purge -y libtbb-dev
155+
140156 - name : Install oneAPI basekit
141157 if : matrix.compiler.cxx == 'icpx'
142158 run : |
143159 sudo apt-get update
144- sudo apt-get install -y gpg-agent wget
160+ # sudo apt-get install -y gpg-agent wget
145161 wget -O- https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB | gpg --dearmor | sudo tee /usr/share/keyrings/oneapi-archive-keyring.gpg > /dev/null
146162 echo "deb [signed-by=/usr/share/keyrings/oneapi-archive-keyring.gpg] https://apt.repos.intel.com/oneapi all main" | sudo tee /etc/apt/sources.list.d/oneAPI.list
147163 sudo apt-get update
148164 sudo apt-get install -y intel-oneapi-ippcp-devel intel-oneapi-ipp-devel intel-oneapi-common-oneapi-vars intel-oneapi-compiler-dpcpp-cpp
149165
166+ - name : Get UMF version
167+ run : |
168+ git config --global --add safe.directory $GITHUB_WORKSPACE
169+ VERSION=$(git describe --tags --abbrev=0 | grep -oP '\d+\.\d+\.\d+')
170+ echo "UMF_VERSION=$VERSION" >> $GITHUB_ENV
171+
150172 - name : Configure build
151173 run : >
152174 ${{ matrix.compiler.cxx == 'icpx' && '. /opt/intel/oneapi/setvars.sh &&' || ''}}
@@ -166,6 +188,7 @@ jobs:
166188 -DUMF_DISABLE_HWLOC=${{matrix.disable_hwloc}}
167189 -DUMF_LINK_HWLOC_STATICALLY=${{matrix.link_hwloc_statically}}
168190 ${{ matrix.build_type == 'Debug' && matrix.compiler.c == 'gcc' && '-DUMF_USE_COVERAGE=ON' || '' }}
191+ ${{ matrix.llvm_linker || '' }}
169192
170193 - name : Build UMF
171194 run : |
@@ -178,14 +201,11 @@ jobs:
178201 ${{ matrix.compiler.cxx == 'icpx' && '. /opt/intel/oneapi/setvars.sh' || true }}
179202 LD_LIBRARY_PATH="${{env.BUILD_DIR}}/lib/:${LD_LIBRARY_PATH}" ctest --output-on-failure
180203
181- - name : Set OS name
182- run : echo "OS_VER=ubuntu-${{ matrix.ubuntu_ver }}" >> $GITHUB_ENV
183-
184204 - name : Check coverage
185205 if : ${{ matrix.build_type == 'Debug' && matrix.compiler.c == 'gcc' }}
186206 working-directory : ${{env.BUILD_DIR}}
187207 run : |
188- export COVERAGE_FILE_NAME=${{env.COVERAGE_NAME}}-${{env.OS_VER }}-shared-${{matrix.shared_library}}-no_hwloc-${{matrix.disable_hwloc}}
208+ export COVERAGE_FILE_NAME=${{env.COVERAGE_NAME}}-ubuntu- ${{matrix.ubuntu_ver }}-shared-${{matrix.shared_library}}-no_hwloc-${{matrix.disable_hwloc}}
189209 echo "COVERAGE_FILE_NAME: $COVERAGE_FILE_NAME"
190210 ../scripts/coverage/coverage_capture.sh $COVERAGE_FILE_NAME
191211 mkdir -p ${{env.COVERAGE_DIR}}
@@ -194,7 +214,7 @@ jobs:
194214 - uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
195215 if : ${{ matrix.build_type == 'Debug' && matrix.compiler.c == 'gcc' }}
196216 with :
197- name : ${{env.COVERAGE_NAME}}-${{env.OS_VER }}-shared-${{matrix.shared_library}}-no_hwloc-${{matrix.disable_hwloc}}
217+ name : ${{env.COVERAGE_NAME}}-${{matrix.ubuntu_ver }}-shared-${{matrix.shared_library}}-no_hwloc-${{matrix.disable_hwloc}}
198218 path : ${{env.COVERAGE_DIR}}
199219
200220 - name : Remove the installation directory
0 commit comments