Skip to content

Commit 12be343

Browse files
committed
CI: confirm webseed redirects + versioned hashes
1 parent e883850 commit 12be343

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

.github/workflows/build-docker.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,28 @@ jobs:
6767
VERSION: $VERSION
6868
VERSION_GUI: $VERSION_GUI
6969

70+
- name: check getmonero webseed + versioned hashes file
71+
run: |
72+
CDN_URL="https://downloads.getmonero.org"
73+
if ! wget --spider -q "$CDN_URL/hashes-$VERSION"; then
74+
echo "::warning title=Torrent-Webseed-URLs::FAILED: $CDN_URL/hashes-$VERSION"
75+
fi
76+
if ! wget --spider -q "$CDN_URL/hashes-$VERSION_GUI"; then
77+
echo "::warning title=Torrent-Webseed-URLs::FAILED: $CDN_URL/hashes-$VERSION_GUI"
78+
fi
79+
for file in $(awk '/monero-/ {print $2}' "hashes.txt"); do
80+
dir=cli
81+
part="monero-$VERSION"
82+
if [[ $file =~ gui ]]; then
83+
dir=gui
84+
part="monero-gui-$VERSION_GUI"
85+
fi
86+
url=$CDN_URL/${part}/${dir}/${file}
87+
if ! wget --spider -q "$url"; then
88+
echo "::warning title=Torrent-Webseed-URLs::FAILED: $url"
89+
fi
90+
done
91+
7092
# note: its possible gui + cli have different versions. combine them for the key.
7193
- uses: actions/cache@v4
7294
id: binaries_cache

0 commit comments

Comments
 (0)