Skip to content

Commit 3f65714

Browse files
committed
Detect if CI in tool/generate-config-header.sh
1 parent 6656678 commit 3f65714

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tool/generate-config-header.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,11 @@ set -x
55

66
VERSION=$(cat .ruby-version)
77

8-
url="$1"
9-
if [ -z "$url" ]; then
8+
if [ -n "$TRUFFLERUBY_CI" ]; then
109
# The source archive, a copy from https://www.ruby-lang.org/en/downloads/
1110
url=$(mx urlrewrite "https://lafo.ssw.uni-linz.ac.at/pub/graal-external-deps/ruby-$VERSION.tar.gz")
11+
else
12+
url="https://cache.ruby-lang.org/pub/ruby/${VERSION%.*}/ruby-$VERSION.tar.gz"
1213
fi
1314

1415
os=$(uname -s)

0 commit comments

Comments
 (0)