Skip to content

Commit

Permalink
ci: retry when installing the deps in debian/ubuntu
Browse files Browse the repository at this point in the history
Sometimes there are issues when installing the build dependencies in
Debian/Ubuntu, so let's retry a few times there.
  • Loading branch information
sergio-correia committed Sep 16, 2021
1 parent 05d8e70 commit bfdbb6e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/install-dependencies
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,12 @@ debian:*|ubuntu:*)
export DEBIAN_FRONTEND=noninteractive
apt clean
apt update
apt -y install build-essential pkg-config libssl-dev zlib1g-dev \
libjansson-dev ${COMMON}
# We get some errors once in a while, so let's try a few times.
for i in 1 2 3; do
apt -y install build-essential pkg-config libssl-dev zlib1g-dev \
libjansson-dev ${COMMON} && break
sleep 5
done
;;

fedora:*)
Expand Down

0 comments on commit bfdbb6e

Please sign in to comment.