恢复 sing-box 及 mihomo 二进制(binary)规则的支持

撤销 f8fc942 更改并更新 sing-box 版本至 1.12.3 最新稳定版;
修正 sing-box mrs 命名为 sing-box srs 及添加显式目录增强稳定性。
This commit is contained in:
ljy6-6-6 2025-08-23 22:01:17 +08:00 committed by GitHub
parent 60a611509a
commit 57e9d22643
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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