Skip to content

Commit 790556c

Browse files
committed
Retry SQLite source downloads in PHPUnit workflow
1 parent 4778276 commit 790556c

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

.github/workflows/phpunit-tests-run.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,15 @@ jobs:
3838
else
3939
TAG="version-${VERSION}"
4040
fi
41-
wget -O sqlite.tar.gz "https://sqlite.org/src/tarball/sqlite.tar.gz?r=${TAG}"
41+
for attempt in 1 2 3 4 5; do
42+
if wget -O sqlite.tar.gz "https://sqlite.org/src/tarball/sqlite.tar.gz?r=${TAG}"; then
43+
break
44+
fi
45+
if [ "$attempt" -eq 5 ]; then
46+
exit 1
47+
fi
48+
sleep $(( attempt * 10 ))
49+
done
4250
tar xzf sqlite.tar.gz
4351
cd sqlite
4452
./configure --prefix=/usr/local CFLAGS="-DSQLITE_ENABLE_COLUMN_METADATA -DSQLITE_ENABLE_FTS5 -DSQLITE_USE_URI -DSQLITE_ENABLE_JSON1" LDFLAGS="-lm"

0 commit comments

Comments
 (0)