Compare commits

...

6 Commits

Author SHA1 Message Date
IceCodeNew
69c81d2427 Update build.yml 2020-05-28 19:43:04 +08:00
IceCodeNew
3368ff3ce4 Update build.yml 2020-05-28 09:53:57 +08:00
IceCodeNew
14291ab514 Merge remote-tracking branch 'upstream/master' 2020-05-28 09:44:57 +08:00
Loyalsoldier
c4fb238a41 Add project stats 2020-05-28 09:40:49 +08:00
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 10 additions and 6 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: |
@@ -36,6 +38,7 @@ jobs:
echo "::set-env name=GEQ1AN_RULES_REJECT_URL::https://raw.githubusercontent.com/GeQ1an/Rules/master/QuantumultX/Filter/AdBlock.list"
echo "::set-env name=LHIE1_RULES_PROXY_URL::https://raw.githubusercontent.com/lhie1/Rules/master/Surge/Surge%203/Provider/Proxy.list"
echo "::set-env name=LHIE1_RULES_REJECT_URL::https://raw.githubusercontent.com/lhie1/Rules/master/Surge/Surge%203/Provider/Reject.list"
echo "::set-env name=ICN_RULES_REJECT_URL::https://raw.githubusercontent.com/IceCodeNew/4Share/master/DNSCrypt/mybase.txt"
echo "::set-env name=GOPATH::$(dirname $GITHUB_WORKSPACE)"
echo "::add-path::$(dirname $GITHUB_WORKSPACE)/bin"
shell: bash
@@ -55,7 +58,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/
@@ -92,6 +95,7 @@ jobs:
cat proxy.txt >> temp-proxy.txt
cat direct.txt >> temp-direct.txt
cat reject.txt >> temp-reject.txt
curl -sSL $ICN_RULES_REJECT_URL | sed -E '/^#|^$/d' >> temp-reject.txt
- name: Sort and generate redundant lists
run: |

View File

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