Skip to content

Commit 32ad63e

Browse files
committed
Replace Release with RelWithDebInfo
1 parent 23b0100 commit 32ad63e

File tree

1 file changed

+6
-47
lines changed

1 file changed

+6
-47
lines changed

.github/workflows/reusable_gpu.yml

Lines changed: 6 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -132,17 +132,13 @@ jobs:
132132
# run: for i in {1..100}; do echo ">>> ITERATION no. ${i}" ; UMF_LOG="level:debug;flush:debug;output:stderr;pid:yes" ./test/test_provider_level_zero_dlopen_global || exit 1; date; done
133133
run: for i in {1..100}; do echo ">>> ITERATION no. ${i}" ; UMF_LOG="level:debug;flush:debug;output:stderr;pid:yes" ctest -V -R provider_level_zero || exit 1; date; done
134134

135-
- name: Run examples (Debug)
136-
working-directory: ${{env.BUILD_DEBUG_DIR}}
137-
run: ctest --output-on-failure --test-dir examples -C Debug
138-
139-
- name: Configure build (Release)
135+
- name: Configure build (RelWithDebInfo)
140136
run: >
141137
cmake
142138
-DCMAKE_PREFIX_PATH="${{env.VCPKG_PATH}};${{env.EXTRA_CMAKE_PATH}}"
143139
-B ${{env.BUILD_RELEASE_DIR}}
144140
-DCMAKE_INSTALL_PREFIX="${{env.INSTL_RELEASE_DIR}}"
145-
-DCMAKE_BUILD_TYPE=Release
141+
-DCMAKE_BUILD_TYPE=RelWithDebInfo
146142
-DCMAKE_C_COMPILER=${{env.C_COMPILER}}
147143
-DCMAKE_CXX_COMPILER=${{env.CXX_COMPILER}}
148144
-DUMF_BUILD_SHARED_LIBRARY=${{matrix.shared_library}}
@@ -159,47 +155,10 @@ jobs:
159155
-DUMF_TESTS_FAIL_ON_SKIP=ON
160156
${{ matrix.os == 'Windows' && '-DCMAKE_SUPPRESS_REGENERATION=ON' || '' }}
161157
162-
- name: Build UMF (Release)
163-
run: cmake --build ${{env.BUILD_RELEASE_DIR}} --config Release -j ${{env.PROCS}}
158+
- name: Build UMF (RelWithDebInfo)
159+
run: cmake --build ${{env.BUILD_RELEASE_DIR}} --config RelWithDebInfo -j ${{env.PROCS}}
164160

165-
- name: Run tests (Release)
161+
- name: Run tests (RelWithDebInfo)
166162
working-directory: ${{env.BUILD_RELEASE_DIR}}
167163
# run: for i in {1..1000}; do echo ">>> ITERATION no. ${i}" ; UMF_LOG="level:debug;flush:debug;output:stderr;pid:yes" ./test/test_provider_level_zero_dlopen_global || exit 1; date; done
168-
run: for i in {1..100}; do echo ">>> ITERATION no. ${i}" ; UMF_LOG="level:debug;flush:debug;output:stderr;pid:yes" ctest -V -R provider_level_zero || exit 1; date; done
169-
170-
- name: Run examples (Release)
171-
working-directory: ${{env.BUILD_RELEASE_DIR}}
172-
run: ctest --output-on-failure --test-dir examples -C Release
173-
174-
- name: Run benchmarks (Release)
175-
working-directory: ${{env.BUILD_RELEASE_DIR}}
176-
run: ctest --output-on-failure --test-dir benchmark -C Release --exclude-regex umf-multithreaded
177-
178-
- name: "[Lin] Check coverage (Debug)"
179-
if: ${{ matrix.os == 'Ubuntu' }}
180-
working-directory: ${{env.BUILD_DEBUG_DIR}}
181-
run: |
182-
export COVERAGE_FILE_NAME=${{env.COVERAGE_NAME}}-shared-${{matrix.shared_library}}
183-
echo "COVERAGE_FILE_NAME: $COVERAGE_FILE_NAME"
184-
${{github.workspace}}/scripts/coverage/coverage_capture.sh $COVERAGE_FILE_NAME
185-
mkdir -p ${{env.COVERAGE_DIR}}
186-
mv ./$COVERAGE_FILE_NAME ${{env.COVERAGE_DIR}}
187-
188-
- name: "[Lin] Upload coverage"
189-
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
190-
if: ${{ matrix.os == 'Ubuntu' }}
191-
with:
192-
name: ${{env.COVERAGE_NAME}}-shared-${{matrix.shared_library}}
193-
path: ${{env.COVERAGE_DIR}}
194-
195-
- name: "[Win] Prepare vcpkg cache"
196-
if: matrix.os == 'Windows' && steps.cache.outputs.cache-hit != 'true'
197-
run: |
198-
Compress-Archive -Path ${{github.workspace}}/vcpkg/packages -DestinationPath ${{github.workspace}}/vcpkg_pkgs_cache.zip -Force -CompressionLevel Fastest
199-
200-
- name: "[Win] Save vcpkg cache"
201-
if: matrix.os == 'Windows' && steps.cache.outputs.cache-hit != 'true'
202-
uses: actions/cache/save@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
203-
with:
204-
path: ${{github.workspace}}/vcpkg_pkgs_cache.zip
205-
key: ${{ steps.cache.outputs.cache-primary-key }}
164+
run: for i in {1..1000}; do echo ">>> ITERATION no. ${i}" ; UMF_LOG="level:debug;flush:debug;output:stderr;pid:yes" ctest -V -R provider_level_zero || exit 1; date; done

0 commit comments

Comments
 (0)