@@ -6,6 +6,12 @@ on: [workflow_call]
66permissions :
77 contents : read
88
9+ env :
10+ BUILD_DIR : " ${{github.workspace}}/build"
11+ INSTL_DIR : " ${{github.workspace}}/../install-dir"
12+ COVERAGE_DIR : " ${{github.workspace}}/coverage"
13+ COVERAGE_NAME : " exports-coverage-multinuma"
14+
915jobs :
1016 multi_numa :
1117 name : ${{matrix.os}}
4046 -DUMF_BUILD_LIBUMF_POOL_DISJOINT=ON
4147 -DUMF_BUILD_LIBUMF_POOL_JEMALLOC=ON
4248 -DUMF_TESTS_FAIL_ON_SKIP=ON
49+ ${{ matrix.os == 'ubuntu-22.04' && '-DUMF_USE_COVERAGE=ON' || '' }}
4350
4451 - name : Build UMF
4552 run : cmake --build ${{github.workspace}}/build -j $(nproc)
5966 ctest --output-on-failure --test-dir test -E "umf-provider_os_memory_multiple_numa_nodes"
6067 ./test/umf_test-provider_os_memory_multiple_numa_nodes \
6168 --gtest_filter="-*checkModeLocal/*:*checkModePreferredEmptyNodeset/*:testNuma.checkModeInterleave"
69+
70+ - name : Check coverage
71+ if : matrix.os == 'ubuntu-22.04'
72+ working-directory : ${{env.BUILD_DIR}}
73+ run : |
74+ export COVERAGE_FILE_NAME=${{env.COVERAGE_NAME}}-os-${{matrix.os}}
75+ echo "COVERAGE_FILE_NAME: $COVERAGE_FILE_NAME"
76+ ../scripts/coverage/coverage_capture.sh $COVERAGE_FILE_NAME
77+ mkdir -p ${{env.COVERAGE_DIR}}
78+ mv ./$COVERAGE_FILE_NAME ${{env.COVERAGE_DIR}}
79+
80+ - uses : actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
81+ if : matrix.os == 'ubuntu-22.04'
82+ with :
83+ name : ${{env.COVERAGE_NAME}}-os-${{matrix.os}}
84+ path : ${{env.COVERAGE_DIR}}
0 commit comments