-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Closed
Description
To be able to download the default net in appveyor CI we need some PowerShell equivalent of the make net target:
net:
$(eval nnuenet := $(shell grep EvalFile ucioption.cpp | grep Option | sed 's/.*\(nn-[a-z0-9]\{12\}.nnue\).*/\1/'))
@echo "Default net: $(nnuenet)"
$(eval nnuedownloadurl := https://tests.stockfishchess.org/api/nn/$(nnuenet))
$(eval curl_or_wget := $(shell if hash curl 2>/dev/null; then echo "curl -sL"; elif hash wget 2>/dev/null; then echo "wget -qO-"; fi))
@if test -f "$(nnuenet)"; then echo "Already available."; else echo "Downloading $(nnuedownloadurl)"; $(curl_or_wget) $(nnuedownloadurl) > $(nnuenet); fiwhich basically greps the value of the default net out of ucioption.cpp and uses curl/wget to download it.
Having this functionality is needed before we can do PGO builds / mixed benches. Code welcome.
Metadata
Metadata
Assignees
Labels
No labels