Skip to content

Commit 2671373

Browse files
authored
Merge pull request #1093 from luszczewskakasia1/test-cmake
Suppress CMake rerun to prevent custombuild timestamp error
2 parents bcaba47 + e45c4f9 commit 2671373

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/reusable_gpu.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ jobs:
7777
run: vcpkg install
7878

7979
# note: disable all providers except the one being tested
80+
# '-DCMAKE_SUPPRESS_REGENERATION=ON' is the WA for the error: "CUSTOMBUILD : CMake error : Cannot restore timestamp"
8081
- name: Configure build
8182
run: >
8283
cmake
@@ -99,7 +100,8 @@ jobs:
99100
-DUMF_BUILD_LEVEL_ZERO_PROVIDER=OFF
100101
-DUMF_BUILD_${{inputs.name}}_PROVIDER=ON
101102
-DUMF_TESTS_FAIL_ON_SKIP=ON
102-
${{ matrix.os == 'Ubuntu' && matrix.build_type == 'Debug' && '-DUMF_USE_COVERAGE=ON' || '' }}
103+
${{ matrix.os == 'Ubuntu' && matrix.build_type == 'Debug' && '-DUMF_USE_COVERAGE=ON' || '' }}
104+
${{ matrix.os == 'Windows' && '-DCMAKE_SUPPRESS_REGENERATION=ON' || '' }}
103105
104106
- name: Build UMF
105107
run: cmake --build ${{env.BUILD_DIR}} --config ${{matrix.build_type}} -j ${{matrix.number_of_processors}}

0 commit comments

Comments
 (0)