|
12 | 12 | os: |
13 | 13 | description: A list of OSes |
14 | 14 | type: string |
15 | | - default: "['Ubuntu', 'Windows']" |
| 15 | + default: "['Ubuntu']" |
16 | 16 | build_type: |
17 | 17 | description: A list of build types |
18 | 18 | type: string |
19 | | - default: "['Debug', 'Release']" |
| 19 | + default: "['Debug']" |
20 | 20 | shared_lib: |
21 | 21 | description: A list of options for building shared library |
22 | 22 | type: string |
|
49 | 49 | - os: 'Ubuntu' |
50 | 50 | compiler: {c: gcc, cxx: g++} |
51 | 51 | number_of_processors: '$(nproc)' |
52 | | - - os: 'Windows' |
53 | | - compiler: {c: cl, cxx: cl} |
54 | | - number_of_processors: '$Env:NUMBER_OF_PROCESSORS' |
55 | 52 |
|
56 | 53 | runs-on: ["DSS-${{inputs.name}}", "DSS-${{matrix.os}}"] |
57 | 54 | steps: |
@@ -112,21 +109,8 @@ jobs: |
112 | 109 | run: ctest --output-on-failure --test-dir examples -C ${{matrix.build_type}} |
113 | 110 |
|
114 | 111 | - name: Run benchmarks |
115 | | - working-directory: ${{env.BUILD_DIR}} |
116 | | - run: ctest --output-on-failure --test-dir benchmark -C ${{matrix.build_type}} --exclude-regex umf-bench-multithreaded |
117 | | - |
118 | | - - name: Check coverage |
119 | | - if: ${{ matrix.build_type == 'Debug' && matrix.os == 'Ubuntu' }} |
120 | 112 | working-directory: ${{env.BUILD_DIR}} |
121 | 113 | run: | |
122 | | - export COVERAGE_FILE_NAME=${{env.COVERAGE_NAME}}-shared-${{matrix.shared_library}} |
123 | | - echo "COVERAGE_FILE_NAME: $COVERAGE_FILE_NAME" |
124 | | - ../scripts/coverage/coverage_capture.sh $COVERAGE_FILE_NAME |
125 | | - mkdir -p ${{env.COVERAGE_DIR}} |
126 | | - mv ./$COVERAGE_FILE_NAME ${{env.COVERAGE_DIR}} |
127 | | -
|
128 | | - - uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3 |
129 | | - if: ${{ matrix.build_type == 'Debug' && matrix.os == 'Ubuntu' }} |
130 | | - with: |
131 | | - name: ${{env.COVERAGE_NAME}}-${{matrix.os}}-${{matrix.build_type}}-shared-${{matrix.shared_library}} |
132 | | - path: ${{env.COVERAGE_DIR}} |
| 114 | + ldd benchmark/umf-bench-ubench |
| 115 | + benchmark/umf-bench-ubench |
| 116 | + ctest -V --test-dir benchmark -C ${{matrix.build_type}} --exclude-regex umf-bench-multithreaded |
0 commit comments