Skip to content

Commit

Permalink
Fix: macOS x64 ビルド (macos-13 runner) がランダムに落ちる問題の緩和策として、ビルド失敗時にリトライする
Browse files Browse the repository at this point in the history
macos-13 runner 固有の問題らしく、何回かリトライ掛けるしかないらしい… (macos-14 arm runner を使っている arm64 ビルドでは問題になっていない)
ref: actions/runner-images#7522
  • Loading branch information
tsukumijima committed Jan 2, 2025
1 parent db5284b commit 9247712
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,17 @@ jobs:
env:
MACOS_ARTIFACT_NAME: ${{ matrix.macos_artifact_name }}
run: |
npm run electron:build -- --prepackaged prepackage/AivisSpeech.app
for i in {1..5}; do
npm run electron:build -- --prepackaged prepackage/AivisSpeech.app && break || {
if [ $i -lt 5 ]; then
echo "Attempt $i failed! Retrying in 10 seconds..."
sleep 10
else
echo "All attempts failed!"
exit 1
fi
}
done
- name: Reset Code Signing Envs
if: startsWith(matrix.os, 'windows-') && github.event.inputs.code_signing == 'true'
Expand Down

0 comments on commit 9247712

Please sign in to comment.