From 9247712a889ad683dd7e5f5087dc41952e371df0 Mon Sep 17 00:00:00 2001 From: tsukumi Date: Fri, 3 Jan 2025 04:20:58 +0900 Subject: [PATCH] =?UTF-8?q?Fix:=20macOS=20x64=20=E3=83=93=E3=83=AB?= =?UTF-8?q?=E3=83=89=20(macos-13=20runner)=20=E3=81=8C=E3=83=A9=E3=83=B3?= =?UTF-8?q?=E3=83=80=E3=83=A0=E3=81=AB=E8=90=BD=E3=81=A1=E3=82=8B=E5=95=8F?= =?UTF-8?q?=E9=A1=8C=E3=81=AE=E7=B7=A9=E5=92=8C=E7=AD=96=E3=81=A8=E3=81=97?= =?UTF-8?q?=E3=81=A6=E3=80=81=E3=83=93=E3=83=AB=E3=83=89=E5=A4=B1=E6=95=97?= =?UTF-8?q?=E6=99=82=E3=81=AB=E3=83=AA=E3=83=88=E3=83=A9=E3=82=A4=E3=81=99?= =?UTF-8?q?=E3=82=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit macos-13 runner 固有の問題らしく、何回かリトライ掛けるしかないらしい… (macos-14 arm runner を使っている arm64 ビルドでは問題になっていない) ref: https://github.com/actions/runner-images/issues/7522 --- .github/workflows/build.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 455c5edc..5429a6e2 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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'