File tree Expand file tree Collapse file tree 3 files changed +12
-3
lines changed Expand file tree Collapse file tree 3 files changed +12
-3
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 ()
2626endif ()
@@ -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 ()
You can’t perform that action at this time.
0 commit comments