Skip to content

Commit c9e9191

Browse files
committed
[CI] use Python urllib to download file instead of Wget
1 parent 4bf2524 commit c9e9191

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -300,8 +300,9 @@ jobs:
300300
echo "Using run-clang-tidy from $(command -v run-clang-tidy)"
301301
CLANG_TIDY=(run-clang-tidy)
302302
else
303-
echo "Downloading run-clang-tidy script"
304-
wget -O run-clang-tidy.py https://raw.githubusercontent.com/llvm/llvm-project/refs/heads/release/21.x/clang-tools-extra/clang-tidy/tool/run-clang-tidy.py
303+
RCT_URL=https://raw.githubusercontent.com/llvm/llvm-project/refs/heads/release/21.x/clang-tools-extra/clang-tidy/tool/run-clang-tidy.py
304+
echo "Downloading run-clang-tidy script from ${RCT_URL}"
305+
echo "import urllib.request; url = '${RCT_URL}'.rstrip('/'); urllib.request.urlretrieve(url, url.split('/')[-1])" | uv run --no-project --script -
305306
CLANG_TIDY=(uv run --no-project --script -- run-clang-tidy.py)
306307
fi
307308
if [[ -x "$(command -v clang-apply-replacements)" ]]; then

0 commit comments

Comments
 (0)