Skip to content

Commit

Permalink
CI nightly mode as CI doesn't see updates from fresh clone
Browse files Browse the repository at this point in the history
  • Loading branch information
scivision committed Mar 12, 2021
1 parent d97778c commit b2c50bb
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,18 @@ jobs:
working-directory: Examples/build

- name: create package
if: github.event.action == 'published'
run: cpack --config build/CPackConfig.cmake

- name: Upload artifact
if: github.event.action == 'published'
uses: actions/upload-artifact@v1
with:
name: binary-archive
path: build/package

- name: get version
if: github.event.action == 'published'
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\/v/}

Expand Down Expand Up @@ -105,15 +108,18 @@ jobs:
# working-directory: Examples/build

- name: create package
if: github.event.action == 'published'
run: cpack --config build/CPackConfig.cmake

- name: Upload artifact
if: github.event.action == 'published'
uses: actions/upload-artifact@v1
with:
name: binary-archive
path: build/package

- name: get version
if: github.event.action == 'published'
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\/v/}

Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/ci_windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,15 +56,18 @@ jobs:
# working-directory: Examples/build

- name: create package
if: github.event.action == 'published'
run: cpack --config build/CPackConfig.cmake

- name: Upload artifact
if: github.event.action == 'published'
uses: actions/upload-artifact@v1
with:
name: binary-archive
path: build/package

- name: get version
if: github.event.action == 'published'
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\/v/}

Expand Down
6 changes: 3 additions & 3 deletions ci.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ if(NOT CTEST_MODEL)
if(DEFINED ENV{CI})
set(CI $ENV{CI})
if(CI)
set(CTEST_MODEL "Continuous")
set(CTEST_MODEL "Nightly")
endif()
endif()
endif()
Expand Down Expand Up @@ -125,8 +125,8 @@ if(CTEST_MODEL STREQUAL Nightly OR CTEST_MODEL STREQUAL Continuous)
message(WARNING "CTest would have erased the non-Git Push'd changes, NOT updating.")
else()
ctest_update(RETURN_VALUE _ret)
if(_ret EQUAL 0)
message(STATUS "No Git-updated files, so no need to test. CTest stopping.")
if(_ret EQUAL 0 AND CTEST_MODEL STREQUAL Continuous)
message(STATUS "No Git-updated files, so no need to test in CTest Model ${CTEST_MODEL}. CTest stopping.")
return()
endif()
endif()
Expand Down

0 comments on commit b2c50bb

Please sign in to comment.