ci: split build and package for mac os letting us retry dmg creation upto 5 times

This commit is contained in:
sithlord48
2026-02-27 08:28:30 -05:00
committed by Chris Rizzitello
parent fc1f3b0142
commit 8a53b4bc8e

View File

@ -280,7 +280,21 @@ jobs:
shell: bash
run: |
if [[ "${{matrix.target.like}}" != "arch" ]]; then
if [ "$RUNNER_OS" != "macOS" ]; then
cmake --build build --config Release -j8 --target package
else
cmake --build build --config Release -j8
for i in $(seq 1 5); do
cmake --build build --config Release -j8 --target package
if [ $? -eq 0 ]; then
echo "Package successful"
break
else
echo "Package attempt $i failed"
sleep 1
fi
done
fi
else
cmake --build build --config Release -j8
useradd -m build