|
53 | 53 | submodules: recursive |
54 | 54 | fetch-depth: 0 |
55 | 55 | - run: git config --system --add safe.directory '*' |
56 | | - - run: c4core-install ${{matrix.cxx}} |
| 56 | + - run: | |
| 57 | + # retry if it fails |
| 58 | + c4core-install ${{matrix.cxx}} \ |
| 59 | + || c4core-install ${{matrix.cxx}} \ |
| 60 | + || c4core-install ${{matrix.cxx}} |
57 | 61 | - name: show info |
58 | 62 | run: source .github/setenv.sh && c4_show_info |
59 | 63 | - name: shared64-configure--------------------------------------------------- |
@@ -124,7 +128,11 @@ jobs: |
124 | 128 | submodules: recursive |
125 | 129 | fetch-depth: 0 |
126 | 130 | - run: git config --system --add safe.directory '*' |
127 | | - - run: c4core-install ${{matrix.cxx}} |
| 131 | + - run: | |
| 132 | + # retry if it fails |
| 133 | + c4core-install ${{matrix.cxx}} \ |
| 134 | + || c4core-install ${{matrix.cxx}} \ |
| 135 | + || c4core-install ${{matrix.cxx}} |
128 | 136 | - name: show info |
129 | 137 | run: source .github/setenv.sh && c4_show_info |
130 | 138 | - name: shared64-configure--------------------------------------------------- |
@@ -195,7 +203,11 @@ jobs: |
195 | 203 | submodules: recursive |
196 | 204 | fetch-depth: 0 |
197 | 205 | - run: git config --system --add safe.directory '*' |
198 | | - - run: c4core-install ${{matrix.cxx}} |
| 206 | + - run: | |
| 207 | + # retry if it fails |
| 208 | + c4core-install ${{matrix.cxx}} \ |
| 209 | + || c4core-install ${{matrix.cxx}} \ |
| 210 | + || c4core-install ${{matrix.cxx}} |
199 | 211 | - name: show info |
200 | 212 | run: source .github/setenv.sh && c4_show_info |
201 | 213 | - name: shared64-configure--------------------------------------------------- |
@@ -266,7 +278,11 @@ jobs: |
266 | 278 | submodules: recursive |
267 | 279 | fetch-depth: 0 |
268 | 280 | - run: git config --system --add safe.directory '*' |
269 | | - - run: c4core-install ${{matrix.cxx}} |
| 281 | + - run: | |
| 282 | + # retry if it fails |
| 283 | + c4core-install ${{matrix.cxx}} \ |
| 284 | + || c4core-install ${{matrix.cxx}} \ |
| 285 | + || c4core-install ${{matrix.cxx}} |
270 | 286 | - name: show info |
271 | 287 | run: source .github/setenv.sh && c4_show_info |
272 | 288 | - name: shared64-configure--------------------------------------------------- |
@@ -579,7 +595,17 @@ jobs: |
579 | 595 | -DRYML_DBG=OFF |
580 | 596 | - name: 'build Debug ::: -m${{matrix.bits}}' |
581 | 597 | run: | |
582 | | - cmake --build build/Debug --target ryml-test-build --parallel --verbose |
| 598 | + source .github/setenv.sh |
| 599 | + numprocs=`_c4getnumcores` |
| 600 | + if [ -n "0"] ; then |
| 601 | + if [ "0" == "1" ] ; then |
| 602 | + if (( $numprocs > 1 )) ; then |
| 603 | + numprocs=$(($numprocs / 2)) |
| 604 | + fi |
| 605 | + fi |
| 606 | + fi |
| 607 | + export CMAKE_BUILD_PARALLEL_LEVEL=$numprocs |
| 608 | + cmake --build build/Debug --target ryml-test-build --parallel $numprocs --verbose |
583 | 609 | - name: 'run Debug ::: -m${{matrix.bits}}' |
584 | 610 | run: | |
585 | 611 | source .github/setenv.sh |
@@ -607,7 +633,17 @@ jobs: |
607 | 633 | -DRYML_DBG=OFF |
608 | 634 | - name: 'build Release ::: -O1 -DNDEBUG -m${{matrix.bits}}' |
609 | 635 | run: | |
610 | | - cmake --build build/Release --target ryml-test-build --parallel --verbose |
| 636 | + source .github/setenv.sh |
| 637 | + numprocs=`_c4getnumcores` |
| 638 | + if [ -n "0"] ; then |
| 639 | + if [ "0" == "1" ] ; then |
| 640 | + if (( $numprocs > 1 )) ; then |
| 641 | + numprocs=$(($numprocs / 2)) |
| 642 | + fi |
| 643 | + fi |
| 644 | + fi |
| 645 | + export CMAKE_BUILD_PARALLEL_LEVEL=$numprocs |
| 646 | + cmake --build build/Release --target ryml-test-build --parallel $numprocs --verbose |
611 | 647 | - name: 'run Release ::: -O1 -DNDEBUG -m${{matrix.bits}}' |
612 | 648 | run: | |
613 | 649 | source .github/setenv.sh |
@@ -635,7 +671,17 @@ jobs: |
635 | 671 | -DRYML_DBG=OFF |
636 | 672 | - name: 'build Release ::: -O2 -DNDEBUG -m${{matrix.bits}}' |
637 | 673 | run: | |
638 | | - cmake --build build/Release --target ryml-test-build --parallel --verbose |
| 674 | + source .github/setenv.sh |
| 675 | + numprocs=`_c4getnumcores` |
| 676 | + if [ -n "0"] ; then |
| 677 | + if [ "0" == "1" ] ; then |
| 678 | + if (( $numprocs > 1 )) ; then |
| 679 | + numprocs=$(($numprocs / 2)) |
| 680 | + fi |
| 681 | + fi |
| 682 | + fi |
| 683 | + export CMAKE_BUILD_PARALLEL_LEVEL=$numprocs |
| 684 | + cmake --build build/Release --target ryml-test-build --parallel $numprocs --verbose |
639 | 685 | - name: 'run Release ::: -O2 -DNDEBUG -m${{matrix.bits}}' |
640 | 686 | run: | |
641 | 687 | source .github/setenv.sh |
@@ -663,7 +709,17 @@ jobs: |
663 | 709 | -DRYML_DBG=OFF |
664 | 710 | - name: 'build Release ::: -O3 -DNDEBUG -m${{matrix.bits}}' |
665 | 711 | run: | |
666 | | - cmake --build build/Release --target ryml-test-build --parallel --verbose |
| 712 | + source .github/setenv.sh |
| 713 | + numprocs=`_c4getnumcores` |
| 714 | + if [ -n "0"] ; then |
| 715 | + if [ "0" == "1" ] ; then |
| 716 | + if (( $numprocs > 1 )) ; then |
| 717 | + numprocs=$(($numprocs / 2)) |
| 718 | + fi |
| 719 | + fi |
| 720 | + fi |
| 721 | + export CMAKE_BUILD_PARALLEL_LEVEL=$numprocs |
| 722 | + cmake --build build/Release --target ryml-test-build --parallel $numprocs --verbose |
667 | 723 | - name: 'run Release ::: -O3 -DNDEBUG -m${{matrix.bits}}' |
668 | 724 | run: | |
669 | 725 | source .github/setenv.sh |
@@ -691,7 +747,17 @@ jobs: |
691 | 747 | -DRYML_DBG=OFF |
692 | 748 | - name: 'build Release ::: -Os -DNDEBUG -m${{matrix.bits}}' |
693 | 749 | run: | |
694 | | - cmake --build build/Release --target ryml-test-build --parallel --verbose |
| 750 | + source .github/setenv.sh |
| 751 | + numprocs=`_c4getnumcores` |
| 752 | + if [ -n "0"] ; then |
| 753 | + if [ "0" == "1" ] ; then |
| 754 | + if (( $numprocs > 1 )) ; then |
| 755 | + numprocs=$(($numprocs / 2)) |
| 756 | + fi |
| 757 | + fi |
| 758 | + fi |
| 759 | + export CMAKE_BUILD_PARALLEL_LEVEL=$numprocs |
| 760 | + cmake --build build/Release --target ryml-test-build --parallel $numprocs --verbose |
695 | 761 | - name: 'run Release ::: -Os -DNDEBUG -m${{matrix.bits}}' |
696 | 762 | run: | |
697 | 763 | source .github/setenv.sh |
@@ -788,7 +854,11 @@ jobs: |
788 | 854 | submodules: recursive |
789 | 855 | fetch-depth: 0 |
790 | 856 | - run: git config --system --add safe.directory '*' |
791 | | - - run: c4core-install ${{matrix.cxx}} |
| 857 | + - run: | |
| 858 | + # retry if it fails |
| 859 | + c4core-install ${{matrix.cxx}} \ |
| 860 | + || c4core-install ${{matrix.cxx}} \ |
| 861 | + || c4core-install ${{matrix.cxx}} |
792 | 862 | - name: show info |
793 | 863 | run: source .github/setenv.sh && c4_show_info |
794 | 864 | - name: shared64-configure--------------------------------------------------- |
|
0 commit comments