Skip to content

Commit

Permalink
Add retry logic to mac packaging step
Browse files Browse the repository at this point in the history
  • Loading branch information
adamkewley committed Dec 11, 2024
1 parent b2225ef commit 7dfbec4
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions scripts/build_mac.sh
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,14 @@ cmake \
ctest --test-dir osc-build --output-on-failure

# build final package
cmake \
--build "osc-build" \
--target ${OSC_BUILD_TARGET} \
-j${OSC_BUILD_CONCURRENCY}

# FIXME: this is in a retry loop because packaging
# can sometimes fail in GitHub's macos-13 runner
for i in {1..8}; do
set +e
cmake \
--build "osc-build" \
--target ${OSC_BUILD_TARGET} \
-j${OSC_BUILD_CONCURRENCY} && break ; sleep 2
set -e
done

0 comments on commit 7dfbec4

Please sign in to comment.