Skip to content

Commit

Permalink
Only attempt two builds under MSYS2 if failed
Browse files Browse the repository at this point in the history
Reason for retry is due to intermittent Python symbol extractor
failure under MSYS2 reported in bug:
msys2/MINGW-packages#11864
  • Loading branch information
kcgen committed Jun 18, 2022
1 parent 53f1c95 commit 6d30e0b
Showing 1 changed file with 14 additions and 10 deletions.
24 changes: 14 additions & 10 deletions .github/workflows/windows-meson-msys2.yml
Expand Up @@ -130,10 +130,11 @@ jobs:
- name: Build
run: |
set -xo pipefail
until meson compile -C build |& tee build.log; do
echo "build failed, try again"
done
scripts/retry_command.sh 2 meson compile -C build |& tee build.log
ccache -s
#
# Reason for retry is due to intermittent Python symbol extractor failure
# under MSYS2 reported in bug: https://github.com/msys2/MINGW-packages/issues/11864
- name: Run tests
if: matrix.conf.run_tests
Expand Down Expand Up @@ -240,16 +241,19 @@ jobs:

- name: Build release
run: |
until meson compile -C $BUILD_RELEASE_DIR; do
echo "build failed, try again"
done
set -euo pipefail
scripts/retry_command.sh 2 meson compile -C $BUILD_RELEASE_DIR
#
# Reason for retry is due to intermittent Python symbol extractor failure
# under MSYS2 reported in bug: https://github.com/msys2/MINGW-packages/issues/11864
- name: Build debugger
run: |
until meson compile -C $BUILD_DEBUGGER_DIR; do
echo "build failed, try again"
done
set -euo pipefail
scripts/retry_command.sh 2 meson compile -C $BUILD_DEBUGGER_DIR
#
# Reason for retry is due to intermittent Python symbol extractor failure
# under MSYS2 reported in bug: https://github.com/msys2/MINGW-packages/issues/11864
- name: Package
run: |
Expand Down

0 comments on commit 6d30e0b

Please sign in to comment.