I'm having a rough time building my zig project in CI (in GitHub Actions) because the zig binaries are very slow to download, and the connection ends up being terminated. This started happening yesterday, from what I can tell. Are there any alternative archives for the binaries? FWIW it seems to be faster to download to my machine than to the GitHub runners, but it's still quite slow to my machine as well, only ~100KB/s.
#Binaries very slow to download from ziglang.org
1 messages · Page 1 of 1 (latest)
Specifically what I'm doing is
wget https://ziglang.org/download/0.16.0/zig-x86_64-linux-0.16.0.tar.xz
Found this on the website, will have a look at those! https://ziglang.org/download/community-mirrors.txt
since you are doing CI, look at https://codeberg.org/mlugg/setup-zig
it will download from mirrors
Oh perfect! Thank you!
it is mentioned in https://ziglang.org/download/community-mirrors/ which you probably skipped past
I'm trying <mirror>/<file> as described there, is that correct?
curl https://zigmirror.hryx.net/zig-x86_64-linux-0.14.1.tar.xz
getting invalid path for this one
Yeah I did skip, sorry! I didn't look too much into this yet, wanted to try downloading one manually first
missing the /zig/, got it! That worked - thank you!!
sweet, that was so much faster
Oh the mirror URL even included /zig/, my bad
Thanks a lot, both!
Will switch my action to use setup-zig
setup-zig also does caching, very important