ci: split build and package for mac os letting us retry dmg creation upto 5 times
This commit is contained in:
parent
fc1f3b0142
commit
8a53b4bc8e
1 changed files with 15 additions and 1 deletions
16
.github/workflows/continuous-integration.yml
vendored
16
.github/workflows/continuous-integration.yml
vendored
|
|
@ -280,7 +280,21 @@ jobs:
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
if [[ "${{matrix.target.like}}" != "arch" ]]; then
|
if [[ "${{matrix.target.like}}" != "arch" ]]; then
|
||||||
cmake --build build --config Release -j8 --target package
|
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
|
else
|
||||||
cmake --build build --config Release -j8
|
cmake --build build --config Release -j8
|
||||||
useradd -m build
|
useradd -m build
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue