From 405b9d4a455ec4c7b303660840d00d562fdb561c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B1=90=E6=AE=87?= <95160953+xishang0128@users.noreply.github.com> Date: Mon, 10 Apr 2023 17:59:57 +0800 Subject: [PATCH] Update run.yml --- .github/workflows/run.yml | 49 +++++++++------------------------------ 1 file changed, 11 insertions(+), 38 deletions(-) diff --git a/.github/workflows/run.yml b/.github/workflows/run.yml index ef5ec8eb89..165f023432 100644 --- a/.github/workflows/run.yml +++ b/.github/workflows/run.yml @@ -197,50 +197,23 @@ jobs: sort ./cn | uniq -i > data-lite/cn go run ./ --datapath=./data-lite --outputname geosite-lite.dat - - name: Checkout CHIZI-0618/sing-geosite - uses: actions/checkout@v3 - with: - repository: CHIZI-0618/sing-geosite - path: sing-geosite - - name: Build geosite-lite.db file + + + - name: Build db file env: NO_SKIP: true run: | - cd sing-geosite || exit 1 - cp ../community/geosite-lite.dat ./ - go run -v . geosite-lite.dat geosite-lite.db + mkdir -p v2box + cd v2box || exit 1 + wget https://github.com/xishang0128/meta-rules-dat/releases/download/v2box/v2box + chmod 755 v2box + ./v2box migrate geosite -i ../custom/publish/geosite.dat ./geosite.db + ./v2box migrate geosite -i ../community/geosite-lite.dat ./geosite-lite.db + ./v2box migrate geoip -i ../geoip.dat ./geoip.db + ./v2box migrate geoip -i ../geoip-lite.dat ./gepip-lite.db - - name: Build geosite.db file - env: - NO_SKIP: true - run: | - cd sing-geosite || exit 1 - cp ../custom/publish/geosite.dat ./ - go run -v . geosite.dat geosite.db - - name: Checkout SagerNet/sing-geoip - uses: actions/checkout@v3 - with: - repository: SagerNet/sing-geoip - path: sing-geoip - - - name: Build geoip-lite.db file - env: - NO_SKIP: true - run: | - cd sing-geoip || exit 1 - sed -i 's/Dreamacro\/maxmind-geoip/xishang0128\/geoip/g' main.go - go run -v . - mv geoip.db geoip-lite.db - - - name: Build geoip.db - env: - NO_SKIP: true - run: | - cd sing-geoip || exit 1 - sed -i 's/xishang0128\/geoip/Loyalsoldier\/geoip/g' main.go - go run -v . - name: Move and zip files run: |