Skip to content

Commit

Permalink
CI: Improve stability (#144)
Browse files Browse the repository at this point in the history
- Rerun build to avoid random ispc failure
- Rerun cpack to avoid random hdiutils failure
  • Loading branch information
mwestphal authored Jan 14, 2024
1 parent f57a78b commit 5ad4389
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/actions/f3d-superbuild/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,18 +105,20 @@ runs:
${{ runner.os == 'Windows' && '-G Ninja' || null }}
${{ runner.os == 'macOS' && '-DCMAKE_OSX_DEPLOYMENT_TARGET=10.15' || null }}
# Rerun the build as ispc can sometimes segfault on Windows
- name: Build
working-directory: ${{github.workspace}}/build
shell: bash
run: cmake --build . --config Release
run: cmake --build . --config Release || cmake --build . --config Release

# Rerun cpack as it can fail on macOS: https://github.com/actions/runner-images/issues/7522
- name: Package
working-directory: ${{github.workspace}}/build
shell: bash
run: |
cmake ./
ctest -R cpack -VV
ctest -R extract -VV
ctest -R cpack -VV || ctest --rerun-failed -VV
ctest -R extract -VV || ctest --rerun-failed -VV
- name: Clean install
working-directory: ${{github.workspace}}/build
Expand Down

0 comments on commit 5ad4389

Please sign in to comment.