Skip to content

Commit 3376178

Browse files
committed
Update pr_build.yml
1 parent a14f92f commit 3376178

1 file changed

Lines changed: 1 addition & 23 deletions

File tree

.github/workflows/pr_build.yml

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -238,30 +238,8 @@ jobs:
238238
- name: Build Installer
239239
if: matrix.build_type != 'android'
240240
shell: bash
241-
run: |
242-
echo "Retry code from https://unix.stackexchange.com/a/137639"
243-
function fail {
244-
echo $1 >&2
245-
exit 1
246-
}
241+
run: cmake --build . --config $BUILD_TYPE --target package $CMAKE_BUILD_EXTRA
247242

248-
function retry {
249-
local n=1
250-
local max=5
251-
local delay=15
252-
while true; do
253-
"$@" && break || {
254-
if [[ $n -lt $max ]]; then
255-
((n++))
256-
echo "Command failed. Attempt $n/$max:"
257-
sleep $delay;
258-
else
259-
fail "The command has failed after $n attempts."
260-
fi
261-
}
262-
done
263-
}
264-
retry cmake --build . --config $BUILD_TYPE --target package $CMAKE_BUILD_EXTRA
265243
# As of 05/17/21 GitHub Virtual Environments changed their "Ubuntu 18.04.5 LTS" image to include two versions of CMake for Android
266244
# https://github.com/actions/virtual-environments/blob/ubuntu18/20210517.1/images/linux/Ubuntu1804-README.md
267245
# Removing 3.18.1 version of CMake as its not compatible with our Android build.

0 commit comments

Comments
 (0)