Revision: 77216
          http://sourceforge.net/p/brlcad/code/77216
Author:   starseeker
Date:     2020-09-24 20:50:13 +0000 (Thu, 24 Sep 2020)
Log Message:
-----------
This is a workaround, but if the build fails once try it a few more times 
before giving up.  Since a fair number of the failures seen so far are 
intermittent, multiple attemps may succeed instead of generating false 
negatives.  Switch execute_process to one call per action - per CMake docs 
that's the way to do sequential execution.

Modified Paths:
--------------
    brlcad/trunk/misc/repoconv/github_ci_actions.yml

Modified: brlcad/trunk/misc/repoconv/github_ci_actions.yml
===================================================================
--- brlcad/trunk/misc/repoconv/github_ci_actions.yml    2020-09-24 19:31:43 UTC 
(rev 77215)
+++ brlcad/trunk/misc/repoconv/github_ci_actions.yml    2020-09-24 20:50:13 UTC 
(rev 77216)
@@ -179,23 +179,41 @@
         set(ENV{PATH} "$ENV{GITHUB_WORKSPACE}${path_separator}$ENV{PATH}")
 
         if ("${{ runner.os }}" STREQUAL "Windows")
-           execute_process(
-             COMMAND cmake --build build -j 1 --config Release --target 
ALL_BUILD
-             COMMAND cmake --build build -j 1 --config Release --target check
-             COMMAND cmake --build build -j 1 --verbose --config Release 
--target PACKAGE
-             RESULT_VARIABLE result
-           )
-           # Try Write-VolumeCache for Windows
+           set(BCNT 0)
+           set(result 1)
+           while(result AND ${BCNT} LESS 4)
+             execute_process(COMMAND cmake --build build -j 1 --config Release 
--target ALL_BUILD RESULT_VARIABLE result)
+             if (NOT ${result})
+               execute_process(COMMAND powershell Write-VolumeCache C)
+               execute_process(COMMAND powershell Write-VolumeCache D)
+               execute_process(COMMAND cmake --build build -j 1 --config 
Release --target check RESULT_VARIABLE result)
+             endif()
+             if (NOT ${result})
+               execute_process(COMMAND powershell Write-VolumeCache C)
+               execute_process(COMMAND powershell Write-VolumeCache D)
+               execute_process(COMMAND cmake --build build -j 1 --verbose 
--config Release --target PACKAGE RESULT_VARIABLE result
+             endif()
+             )
+             math(EXPR BCNT "${BCNT}+1")
+           endwhile()
            execute_process(COMMAND powershell Write-VolumeCache C)
            execute_process(COMMAND powershell Write-VolumeCache D)
         else ("${{ runner.os }}" STREQUAL "Windows")
-           execute_process(
-             COMMAND cmake --build build -j 1 --verbose --config Release 
--target all
-             COMMAND cmake --build build -j 1 --verbose --config Release 
--target check
-             COMMAND cmake --build build -j 1 --verbose --config Release 
--target package
-             RESULT_VARIABLE result
-           )
-           # On platforms where we have it, make sure the files are in place 
with a sync
+           set(BCNT 0)
+           set(result 1)
+           while(result AND ${BCNT} LESS 4)
+             execute_process(COMMAND cmake --build build -j 1 --config Release 
--target all RESULT_VARIABLE result)
+             if (NOT ${result})
+               execute_process(COMMAND sync)
+               execute_process(COMMAND cmake --build build -j 1 --config 
Release --target check RESULT_VARIABLE result)
+             endif()
+             if (NOT ${result})
+               execute_process(COMMAND sync)
+               execute_process(COMMAND cmake --build build -j 1 --verbose 
--config Release --target package RESULT_VARIABLE result
+             endif()
+             )
+             math(EXPR BCNT "${BCNT}+1")
+           endwhile()
            execute_process(COMMAND sync)
         endif ("${{ runner.os }}" STREQUAL "Windows")
         if (NOT result EQUAL 0)

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.



_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to