From 67ba638897e91b9822710fe2ffdb590cda34b250 Mon Sep 17 00:00:00 2001 From: renaud gaudin Date: Thu, 23 Nov 2023 10:50:23 +0000 Subject: [PATCH] using our retry script, up to 5x on retcode 65 --- .github/actions/xcbuild/action.yml | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/.github/actions/xcbuild/action.yml b/.github/actions/xcbuild/action.yml index cafc8d63..363a54ea 100644 --- a/.github/actions/xcbuild/action.yml +++ b/.github/actions/xcbuild/action.yml @@ -113,12 +113,8 @@ runs: XC_SCHEME: ${{ inputs.XC_SCHEME }} shell: bash run: xcrun xcodebuild -workspace $XC_WORKSPACE -scheme $XC_SCHEME -showBuildSettings + # build is launched up to twice as it's common the build fails, looking for CoreKiwix module - - - name: Install retry command - shell: bash - run: brew install kadwanev/brew/retry - - name: Build with Xcode env: FRAMEWORK_SEARCH_PATHS: ${{ env.PWD }} @@ -130,4 +126,4 @@ runs: XC_DESTINATION: ${{ inputs.xc-destination }} EXTRA_XCODEBUILD: ${{ inputs.EXTRA_XCODEBUILD }} shell: bash - run: retry -t 2 -- xcrun xcodebuild ${EXTRA_XCODEBUILD} -workspace $XC_WORKSPACE -scheme $XC_SCHEME -destination "$XC_DESTINATION" -configuration $XC_CONFIG -onlyUsePackageVersionsFromResolvedFile -allowProvisioningUpdates -verbose -archivePath $PWD/Kiwix-$VERSION.xcarchive ${ACTION} + run: python .github/retry-if-retcode.py --sleep 60 --attempts 5 --retcode 65 xcrun xcodebuild ${EXTRA_XCODEBUILD} -workspace $XC_WORKSPACE -scheme $XC_SCHEME -destination "$XC_DESTINATION" -configuration $XC_CONFIG -onlyUsePackageVersionsFromResolvedFile -allowProvisioningUpdates -verbose -archivePath $PWD/Kiwix-$VERSION.xcarchive ${ACTION}