Skip to content

Commit b2c50bb

Browse files
committed
CI nightly mode as CI doesn't see updates from fresh clone
1 parent d97778c commit b2c50bb

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,15 +39,18 @@ jobs:
3939
working-directory: Examples/build
4040

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

4445
- name: Upload artifact
46+
if: github.event.action == 'published'
4547
uses: actions/upload-artifact@v1
4648
with:
4749
name: binary-archive
4850
path: build/package
4951

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

@@ -105,15 +108,18 @@ jobs:
105108
# working-directory: Examples/build
106109

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

110114
- name: Upload artifact
115+
if: github.event.action == 'published'
111116
uses: actions/upload-artifact@v1
112117
with:
113118
name: binary-archive
114119
path: build/package
115120

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

.github/workflows/ci_windows.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,15 +56,18 @@ jobs:
5656
# working-directory: Examples/build
5757

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

6162
- name: Upload artifact
63+
if: github.event.action == 'published'
6264
uses: actions/upload-artifact@v1
6365
with:
6466
name: binary-archive
6567
path: build/package
6668

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

ci.cmake

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ if(NOT CTEST_MODEL)
2020
if(DEFINED ENV{CI})
2121
set(CI $ENV{CI})
2222
if(CI)
23-
set(CTEST_MODEL "Continuous")
23+
set(CTEST_MODEL "Nightly")
2424
endif()
2525
endif()
2626
endif()
@@ -125,8 +125,8 @@ if(CTEST_MODEL STREQUAL Nightly OR CTEST_MODEL STREQUAL Continuous)
125125
message(WARNING "CTest would have erased the non-Git Push'd changes, NOT updating.")
126126
else()
127127
ctest_update(RETURN_VALUE _ret)
128-
if(_ret EQUAL 0)
129-
message(STATUS "No Git-updated files, so no need to test. CTest stopping.")
128+
if(_ret EQUAL 0 AND CTEST_MODEL STREQUAL Continuous)
129+
message(STATUS "No Git-updated files, so no need to test in CTest Model ${CTEST_MODEL}. CTest stopping.")
130130
return()
131131
endif()
132132
endif()

0 commit comments

Comments
 (0)