13
13
14
14
jobs :
15
15
multi_numa :
16
- name : ${{matrix.os}}
16
+ name : " ${{matrix.os}}, ${{matrix.build_type}}, shared=${{matrix.shared_library}} "
17
17
# run only on upstream; forks will not have the HW
18
18
if : github.repository == 'oneapi-src/unified-memory-framework'
19
19
20
20
strategy :
21
21
matrix :
22
22
os : [ubuntu-22.04, rhel-9.1]
23
+ build_type : [Debug, Release]
24
+ shared_library : ['ON', 'OFF']
23
25
runs-on : ["DSS-MULTI-NUMA", "DSS-${{matrix.os}}"]
24
26
25
27
steps :
@@ -35,17 +37,17 @@ jobs:
35
37
run : >
36
38
cmake
37
39
-B ${{github.workspace}}/build
38
- -DCMAKE_BUILD_TYPE=Debug
40
+ -DCMAKE_BUILD_TYPE=${{matrix.build_type}}
39
41
-DCMAKE_C_COMPILER=gcc
40
42
-DCMAKE_CXX_COMPILER=g++
41
- -DUMF_BUILD_SHARED_LIBRARY=OFF
43
+ -DUMF_BUILD_SHARED_LIBRARY=${{matrix.shared_library}}
42
44
-DUMF_BUILD_BENCHMARKS=OFF
43
45
-DUMF_BUILD_TESTS=ON
44
46
-DUMF_DEVELOPER_MODE=ON
45
47
-DUMF_BUILD_LIBUMF_POOL_DISJOINT=ON
46
48
-DUMF_BUILD_LIBUMF_POOL_JEMALLOC=ON
47
49
-DUMF_TESTS_FAIL_ON_SKIP=ON
48
- ${{ matrix.os == 'ubuntu-22.04' && '-DUMF_USE_COVERAGE=ON' || '' }}
50
+ ${{ matrix.build_type == 'Debug' && matrix. os == 'ubuntu-22.04' && '-DUMF_USE_COVERAGE=ON' || '' }}
49
51
50
52
- name : Build UMF
51
53
run : cmake --build ${{github.workspace}}/build -j $(nproc)
70
72
if : matrix.os == 'ubuntu-22.04'
71
73
working-directory : ${{env.BUILD_DIR}}
72
74
run : |
73
- export COVERAGE_FILE_NAME=${{env.COVERAGE_NAME}}-os- ${{matrix.os }}
75
+ export COVERAGE_FILE_NAME=${{env.COVERAGE_NAME}}-${{matrix.os}}-shared- ${{matrix.shared_library }}
74
76
echo "COVERAGE_FILE_NAME: $COVERAGE_FILE_NAME"
75
77
../scripts/coverage/coverage_capture.sh $COVERAGE_FILE_NAME
76
78
mkdir -p ${{env.COVERAGE_DIR}}
79
81
- uses : actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
80
82
if : matrix.os == 'ubuntu-22.04'
81
83
with :
82
- name : ${{env.COVERAGE_NAME}}-os -${{matrix.os }}
84
+ name : ${{env.COVERAGE_NAME}}-${{matrix.os}} -${{matrix.build_type}}-shared-${{matrix.shared_library }}
83
85
path : ${{env.COVERAGE_DIR}}
0 commit comments