Skip to content

Commit c98a957

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

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

.github/workflows/build-docker.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,34 @@ 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 "$CDN_URL/hashes-$VERSION"; then
74+
echo "Webseed FAILED: hashes-$VERSION"
75+
#exit 1
76+
fi
77+
if ! wget --spider "$CDN_URL/hashes-$VERSION_GUI"; then
78+
echo "Webseed FAILED: hashes-$VERSION_GUI"
79+
#exit 1
80+
fi
81+
for file in $(awk '/monero-/ {print $2}' "hashes.txt"); do
82+
dir=cli
83+
part="monero-$VERSION"
84+
echo $file
85+
if [[ $file =~ gui ]]; then
86+
dir=gui
87+
part="monero-gui-$VERSION_GUI"
88+
fi
89+
url=$CDN_URL/${part}/${dir}/${file}
90+
if ! wget --spider "$url"; then
91+
echo "Webseed FAILED: $url"
92+
#exit 1
93+
else
94+
echo "Webseed OK: $url"
95+
fi
96+
done
97+
7098
# note: its possible gui + cli have different versions. combine them for the key.
7199
- uses: actions/cache@v4
72100
id: binaries_cache

0 commit comments

Comments
 (0)