Skip to content

Commit 2e0e691

Browse files
committed
Revert timestamp related code
1 parent 4b7a8c5 commit 2e0e691

2 files changed

Lines changed: 1 addition & 32 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -172,32 +172,12 @@ jobs:
172172
-DIRIS_CI=ON \
173173
-S .
174174
175-
- name: Check Deps build time stamp (pre-build)
176-
id: pre-build-check
177-
shell: bash
178-
run: |
179-
if [ -e build/_deps/.iris_deps_build_stamp ]; then
180-
echo "deps-timestamp=$(stat -c %Y build/_deps/.iris_deps_build_stamp)" >> $GITHUB_OUTPUT
181-
else
182-
echo "deps-timestamp=0" >> $GITHUB_OUTPUT
183-
fi
184-
185-
- name: Try building Deps
186-
run: |
187-
cmake --build build --config ${{ matrix.build_type.name }} -j${{ env.IRIS_BUILD_JOBS }} --target iris_deps_build_check ${{ matrix.compiler.builder_additional_args }}
188-
189-
- name: Check Deps build time stamp (post-build)
190-
id: post-build-check
191-
shell: bash
192-
run: |
193-
echo "deps-timestamp=$(stat -c %Y build/_deps/.iris_deps_build_stamp)" >> $GITHUB_OUTPUT
194-
195175
- name: Build Tests
196176
run: |
197177
cmake --build build --config ${{ matrix.build_type.name }} -j${{ env.IRIS_BUILD_JOBS }} ${{ matrix.compiler.builder_additional_args }}
198178
199179
- name: Cache CMake Dependencies (save)
200-
if: steps.cache-deps.outputs.cache-hit != 'true' || steps.pre-build-check.outputs.deps-timestamp != steps.post-build-check.outputs.deps-timestamp
180+
if: steps.cache-deps.outputs.cache-hit != 'true'
201181
uses: actions/cache/save@v4
202182
with:
203183
key: ${{ steps.cache-deps.outputs.cache-primary-key }}

test/CMakeLists.txt

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -88,17 +88,6 @@ target_link_libraries(Catch2WithMain PRIVATE iris_cxx_test_external)
8888

8989
target_link_libraries(iris_cxx_test INTERFACE Catch2::Catch2WithMain)
9090

91-
if (IRIS_CI)
92-
set(IRIS_DEPS_STAMP "${CMAKE_BINARY_DIR}/_deps/.iris_deps_build_stamp")
93-
add_custom_command(
94-
OUTPUT "${IRIS_DEPS_STAMP}"
95-
COMMAND echo "C++ is a great language" > "${IRIS_DEPS_STAMP}"
96-
DEPENDS Catch2::Catch2WithMain
97-
COMMENT "Deps is rebuilt"
98-
)
99-
add_custom_target(iris_deps_build_check ALL DEPENDS "${IRIS_DEPS_STAMP}")
100-
endif()
101-
10291
# -----------------------------------------------------------------
10392
# Common CMake utilities for testing
10493

0 commit comments

Comments
 (0)