Compare commits

..

2 Commits

Author SHA1 Message Date
IceCodeNew
7af67fd076 Merge remote-tracking branch 'upstream/master' 2020-05-11 16:27:28 +08:00
IceCodeNew
5ab8d1e723 Update build.yml
* Change cnipv4url:
[IceCodeNew/4Share:geoip_china/china_ip_list.txt](https://raw.githubusercontent.com/IceCodeNew/4Share/master/geoip_china/china_ip_list.txt)

* Add more trigger
2020-04-28 12:13:54 +08:00
2 changed files with 8 additions and 12 deletions

View File

@@ -1,20 +1,22 @@
name: Build V2Ray rules dat files
on:
schedule:
- cron: "0 22 * * *"
- cron: "30 3 * * *"
push:
branches:
- master
- hidden
label:
types: [created, deleted]
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Setup Go 1.14
- name: Setup Go 1.14.1
uses: actions/setup-go@v1
with:
go-version: 1.14
go-version: 1.14.1
- name: Set $GOPATH and more variables
run: |
@@ -55,7 +57,7 @@ jobs:
- name: Generate geoip.dat file
run: |
go get -u -v -insecure $GEOIP_REPO
geoip --country=./geoip/GeoLite2-Country-Locations-en.csv --ipv4=./geoip/GeoLite2-Country-Blocks-IPv4.csv --ipv6=./geoip/GeoLite2-Country-Blocks-IPv6.csv --cnipv4url=https://raw.githubusercontent.com/17mon/china_ip_list/master/china_ip_list.txt
geoip --country=./geoip/GeoLite2-Country-Locations-en.csv --ipv4=./geoip/GeoLite2-Country-Blocks-IPv4.csv --ipv6=./geoip/GeoLite2-Country-Blocks-IPv6.csv --cnipv4url=https://raw.githubusercontent.com/IceCodeNew/4Share/master/geoip_china/china_ip_list.txt
mkdir -p ./publish
mv ./geoip.dat ./publish/
@@ -138,13 +140,11 @@ jobs:
mv ./*-excluse-list ./publish/
cp -f $GOPATH/src/$GEOSITE_REPO/data/{proxy,direct,reject}-list ./publish/
- name: Zip files and generate sha256 hash
- name: Generate dat files sha256 hash
run: |
cd ./publish
zip rules.zip {proxy,direct,reject}-list *.dat
sha256sum geoip.dat > geoip.dat.sha256sum
sha256sum geosite.dat > geosite.dat.sha256sum
sha256sum rules.zip > rules.zip.sha256sum
- name: Release and upload assets
uses: softprops/action-gh-release@v1

View File

@@ -1,4 +1,4 @@
# 简介 ![GitHub All Releases](https://img.shields.io/github/downloads/Loyalsoldier/v2ray-rules-dat/total)
# 简介
**V2Ray** 规则文件加强版,可代替 V2Ray 官方 `geoip.dat``geosite.dat` 规则文件。利用 GitHub Actions 北京时间每天早上 6 点自动构建,保证规则最新。
@@ -310,7 +310,3 @@
- [@GeQ1an/Rules](https://github.com/GeQ1an/Rules/tree/master/QuantumultX)
- [@lhie1/Rules](https://github.com/lhie1/Rules/tree/master)
- [MaxMind GeoLite2 Free IP Database](https://dev.maxmind.com/geoip/geoip2/geolite2/)
## 项目 Star 数增长趋势
[![Stargazers over time](https://starchart.cc/Loyalsoldier/v2ray-rules-dat.svg)](https://starchart.cc/Loyalsoldier/v2ray-rules-dat)