18
18
name : Ubuntu
19
19
runs-on : ubuntu-latest
20
20
container :
21
- image : ghcr.io/bb-ur/umf-ubuntu-${{ matrix.ubuntu_ver }}:latest
22
- options : --user root --privileged
21
+ # image: ghcr.io/bb-ur/umf-ubuntu-${{ matrix.ubuntu_ver }}:latest
22
+ image : ghcr.io/rbanka1/umf-ubuntu-${{ matrix.ubuntu_ver }}:latest # test
23
+ # options: --user root --privileged
23
24
volumes :
24
25
- ${{ github.workspace }}:${{ github.workspace }}
25
26
strategy :
@@ -137,15 +138,33 @@ jobs:
137
138
with :
138
139
fetch-depth : 0
139
140
141
+ - name : Install cmake (non-default version)
142
+ if : matrix.cmake_ver != 'default'
143
+ run : |
144
+ echo ${USERPASS} | sudo -Sk apt-get remove --purge -y cmake
145
+ wget https://github.com/Kitware/CMake/releases/download/v${{matrix.cmake_ver}}/cmake-${{matrix.cmake_ver}}-Linux-x86_64.sh
146
+ chmod +x cmake-${{matrix.cmake_ver}}-Linux-x86_64.sh
147
+ echo ${USERPASS} | sudo -Sk ./cmake-${{matrix.cmake_ver}}-Linux-x86_64.sh --skip-license --prefix=/usr/local
148
+
149
+ - name : Install TBB apt package
150
+ if : matrix.install_tbb == 'ON'
151
+ run : |
152
+ echo ${USERPASS} | sudo -Sk apt-get install -y libtbb-dev
153
+
140
154
- name : Install oneAPI basekit
141
155
if : matrix.compiler.cxx == 'icpx'
142
156
run : |
143
- sudo apt-get update
144
- sudo apt-get install -y gpg-agent wget
145
- 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
146
- 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
147
- sudo apt-get update
148
- sudo apt-get install -y intel-oneapi-ippcp-devel intel-oneapi-ipp-devel intel-oneapi-common-oneapi-vars intel-oneapi-compiler-dpcpp-cpp
157
+ echo ${USERPASS} | sudo -Sk apt-get update
158
+ echo ${USERPASS} | sudo -Sk apt-get install -y gpg-agent wget
159
+ wget -O- https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB | gpg --dearmor | echo ${USERPASS} | sudo -Sk tee /usr/share/keyrings/oneapi-archive-keyring.gpg > /dev/null
160
+ echo "deb [signed-by=/usr/share/keyrings/oneapi-archive-keyring.gpg] https://apt.repos.intel.com/oneapi all main" | echo ${USERPASS} | sudo -Sk tee /etc/apt/sources.list.d/oneAPI.list
161
+ echo ${USERPASS} | sudo -Sk apt-get update
162
+ echo ${USERPASS} | sudo -Sk apt-get install -y intel-oneapi-ippcp-devel intel-oneapi-ipp-devel intel-oneapi-common-oneapi-vars intel-oneapi-compiler-dpcpp-cpp
163
+
164
+ - name : Get UMF version
165
+ run : |
166
+ VERSION=$(git describe --tags --abbrev=0 | grep -oP '\d+\.\d+\.\d+')
167
+ echo "UMF_VERSION=$VERSION" >> $GITHUB_ENV
149
168
150
169
- name : Configure build
151
170
run : >
@@ -166,6 +185,7 @@ jobs:
166
185
-DUMF_DISABLE_HWLOC=${{matrix.disable_hwloc}}
167
186
-DUMF_LINK_HWLOC_STATICALLY=${{matrix.link_hwloc_statically}}
168
187
${{ matrix.build_type == 'Debug' && matrix.compiler.c == 'gcc' && '-DUMF_USE_COVERAGE=ON' || '' }}
188
+ ${{ matrix.llvm_linker || '' }}
169
189
170
190
- name : Build UMF
171
191
run : |
@@ -178,14 +198,11 @@ jobs:
178
198
${{ matrix.compiler.cxx == 'icpx' && '. /opt/intel/oneapi/setvars.sh' || true }}
179
199
LD_LIBRARY_PATH="${{env.BUILD_DIR}}/lib/:${LD_LIBRARY_PATH}" ctest --output-on-failure
180
200
181
- - name : Set OS name
182
- run : echo "OS_VER=ubuntu-${{ matrix.ubuntu_ver }}" >> $GITHUB_ENV
183
-
184
201
- name : Check coverage
185
202
if : ${{ matrix.build_type == 'Debug' && matrix.compiler.c == 'gcc' }}
186
203
working-directory : ${{env.BUILD_DIR}}
187
204
run : |
188
- export COVERAGE_FILE_NAME=${{env.COVERAGE_NAME}}-${{env.OS_VER }}-shared-${{matrix.shared_library}}-no_hwloc-${{matrix.disable_hwloc}}
205
+ export COVERAGE_FILE_NAME=${{env.COVERAGE_NAME}}-ubuntu- ${{matrix.ubuntu_ver }}-shared-${{matrix.shared_library}}-no_hwloc-${{matrix.disable_hwloc}}
189
206
echo "COVERAGE_FILE_NAME: $COVERAGE_FILE_NAME"
190
207
../scripts/coverage/coverage_capture.sh $COVERAGE_FILE_NAME
191
208
mkdir -p ${{env.COVERAGE_DIR}}
@@ -194,7 +211,7 @@ jobs:
194
211
- uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
195
212
if : ${{ matrix.build_type == 'Debug' && matrix.compiler.c == 'gcc' }}
196
213
with :
197
- name : ${{env.COVERAGE_NAME}}-${{env.OS_VER }}-shared-${{matrix.shared_library}}-no_hwloc-${{matrix.disable_hwloc}}
214
+ name : ${{env.COVERAGE_NAME}}-${{matrix.ubuntu_ver }}-shared-${{matrix.shared_library}}-no_hwloc-${{matrix.disable_hwloc}}
198
215
path : ${{env.COVERAGE_DIR}}
199
216
200
217
- name : Remove the installation directory
0 commit comments