mirror of
https://github.com/MetaCubeX/meta-rules-dat.git
synced 2024-11-10 16:05:42 +08:00
Update run.yml
This commit is contained in:
parent
ca4576dc4b
commit
6c01578655
11
.github/workflows/run.yml
vendored
11
.github/workflows/run.yml
vendored
@ -185,9 +185,8 @@ jobs:
|
|||||||
cd custom || exit 1
|
cd custom || exit 1
|
||||||
go run ./ --datapath=../community/data
|
go run ./ --datapath=../community/data
|
||||||
|
|
||||||
- name: Build geosite-lite.dat file
|
|
||||||
env:
|
- name: Add `lite` data
|
||||||
NO_SKIP: true
|
|
||||||
run: |
|
run: |
|
||||||
cd community || exit 1
|
cd community || exit 1
|
||||||
mkdir -p data-lite
|
mkdir -p data-lite
|
||||||
@ -195,6 +194,12 @@ jobs:
|
|||||||
curl -sSL https://raw.githubusercontent.com/Loyalsoldier/domain-list-custom/release/cn.txt | perl -ne '/^(domain):([^:]+)(\n$|:@.+)/ && print "$2\n"' >> cn
|
curl -sSL https://raw.githubusercontent.com/Loyalsoldier/domain-list-custom/release/cn.txt | perl -ne '/^(domain):([^:]+)(\n$|:@.+)/ && print "$2\n"' >> cn
|
||||||
curl -sSL https://raw.githubusercontent.com/Loyalsoldier/domain-list-custom/release/cn.txt | perl -ne '/^((full|regexp|keyword):[^:]+)(\n$|:@.+)/ && print "$1\n"' | sort --ignore-case -u >> cn
|
curl -sSL https://raw.githubusercontent.com/Loyalsoldier/domain-list-custom/release/cn.txt | perl -ne '/^((full|regexp|keyword):[^:]+)(\n$|:@.+)/ && print "$1\n"' | sort --ignore-case -u >> cn
|
||||||
sort ./cn | uniq -i > data-lite/cn
|
sort ./cn | uniq -i > data-lite/cn
|
||||||
|
|
||||||
|
- name: Build geosite-lite.dat file
|
||||||
|
env:
|
||||||
|
NO_SKIP: true
|
||||||
|
run: |
|
||||||
|
cd community || exit 1
|
||||||
go run ./ --datapath=./data-lite --outputname geosite-lite.dat
|
go run ./ --datapath=./data-lite --outputname geosite-lite.dat
|
||||||
|
|
||||||
- name: Checkout SagerNet/sing-geosite
|
- name: Checkout SagerNet/sing-geosite
|
||||||
|
Loading…
Reference in New Issue
Block a user