Automatically generate ookla-speedtest from source

This commit is contained in:
loyalsoldier 2020-01-25 18:02:55 +08:00
parent e7b6a610aa
commit ef7bcbb44a

View File

@ -28,6 +28,12 @@ jobs:
run: |
go get -u -v -insecure github.com/v2ray/domain-list-community
- name: Automatically generate ookla-speedtest sub-list from source
run: |
curl -L -o servers-source.xml "https://c.speedtest.net/speedtest-servers-static.php"
cat servers-source.xml | sed -nEe 's/.+host="(.+):[0-9]+".+/\L\1/p' | sort -u > hosts-with-ip.txt
sed -E '/^([0-9]{1,3}\.){3}[0-9]{1,3}$/d' hosts-with-ip.txt > $GOPATH/src/github.com/v2ray/domain-list-community/data/ookla-speedtest
- name: Build geosite.dat file
run: |
domain-list-community