Skip to content

Commit ee822db

Browse files
authored
Merge branch 'master' into optimize_listVar
2 parents bca13f2 + 625e497 commit ee822db

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

.github/workflows/R-CMD-check.yaml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,14 @@ jobs:
8080
if: runner.os == 'macOS'
8181
run: |
8282
if clang --version | grep 'clang version 17'; then
83-
curl -O https://mac.r-project.org/openmp/openmp-19.1.0-darwin20-Release.tar.gz
84-
sudo tar fvvxz openmp-19.1.0-darwin20-Release.tar.gz -C /
85-
rm -f openmp-19.1.0-darwin20-Release.tar.gz
83+
openmp_tarball=openmp-19.1.5-darwin20-Release.tar.gz
84+
if curl --fail --location --retry 3 --retry-all-errors --connect-timeout 20 --max-time 180 \
85+
-O "https://mac.r-project.org/openmp/${openmp_tarball}"; then
86+
sudo tar fvxz "${openmp_tarball}" -C /
87+
rm -f "${openmp_tarball}"
88+
else
89+
echo "Warning: failed to fetch OpenMP runtime from https://mac.r-project.org/openmp/; continuing without it"
90+
fi
8691
fi # otherwise R-bundled runtime is fine
8792
8893
- name: Install dependencies

0 commit comments

Comments
 (0)