From 57e9d22643b05d1f2480bce7adbb3b433a272dbd Mon Sep 17 00:00:00 2001 From: ljy6-6-6 <72300219+ljy6-6-6@users.noreply.github.com> Date: Sat, 23 Aug 2025 22:01:17 +0800 Subject: [PATCH] =?UTF-8?q?=E6=81=A2=E5=A4=8D=20sing-box=20=E5=8F=8A=20mih?= =?UTF-8?q?omo=20=E4=BA=8C=E8=BF=9B=E5=88=B6(binary)=E8=A7=84=E5=88=99?= =?UTF-8?q?=E7=9A=84=E6=94=AF=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 撤销 f8fc942 更改并更新 sing-box 版本至 1.12.3 最新稳定版; 修正 sing-box mrs 命名为 sing-box srs 及添加显式目录增强稳定性。 --- .github/workflows/build.yaml | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index a9e318e..2d10431 100755 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -18,7 +18,7 @@ jobs: uses: actions/setup-python@v5 with: python-version: 3.12 - + - name: Execute Python script run: | git clone "https://${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}" -b build build @@ -29,7 +29,25 @@ jobs: mkdir Filters cp -Rf AWAvenue-Ads-Rule-Adblock.txt AWAvenue-Ads-Rule.txt #历史遗留问题 mv AWAvenue-Ads-Rule-* Filters/ - + + - name: build singbox srs + run: | + cd build/out/Filters + wget -O ./sing-box.tar.gz https://github.com/SagerNet/sing-box/releases/download/v1.12.3/sing-box-1.12.3-linux-amd64.tar.gz + tar -xzvf sing-box.tar.gz + chmod +x */sing-box + ./*/sing-box rule-set compile --output AWAvenue-Ads-Rule-Singbox.srs AWAvenue-Ads-Rule-Singbox.json + rm -rf *sing-box* + + - name: build mihomo mrs + run: | + cd build/out/Filters + wget -O ./mihomo.gz https://github.com/MetaCubeX/mihomo/releases/download/v1.19.12/mihomo-linux-amd64-v1.19.12.gz + gzip -d mihomo.gz + chmod +x mihomo + ./mihomo convert-ruleset domain yaml AWAvenue-Ads-Rule-Clash.yaml AWAvenue-Ads-Rule-Clash.mrs + rm -rf *mihomo* + - name: Git push run: | git clone "https://${{ github.actor }}:${{ secrets.TOKEN }}@github.com/${{ github.repository }}" push