mirror of
https://github.com/juewuy/ShellCrash.git
synced 2026-03-12 08:21:40 +00:00
~调整自动编译
This commit is contained in:
45
.github/workflows/core_auto_update.yml
vendored
45
.github/workflows/core_auto_update.yml
vendored
@@ -6,55 +6,30 @@ on:
|
|||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
check_version:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: checkout
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
with:
|
|
||||||
repository: reF1nd/sing-box
|
|
||||||
ref: reF1nd-dev
|
|
||||||
fetch-depth: 0
|
|
||||||
- name: Check version
|
|
||||||
run: |
|
|
||||||
git remote add sekai https://github.com/SagerNet/sing-box.git
|
|
||||||
git fetch --tags sekai
|
|
||||||
version_new=$(CGO_ENABLED=0 go run ./cmd/internal/read_tag)
|
|
||||||
version_old=$(curl -sSl https://github.com/juewuy/ShellCrash/releases/download/singbox_core_reF1nd/version)
|
|
||||||
if [ "$version_old" != "$version_new" ];then
|
|
||||||
echo a=$version_old >> $GITHUB_ENV
|
|
||||||
echo b=$version_new >> $GITHUB_ENV
|
|
||||||
else
|
|
||||||
echo "未检查到版本更新,已退出!"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
auto_update_singboxr_dev:
|
auto_update_singboxr_dev:
|
||||||
needs: check_version
|
|
||||||
if: ${{ success() }}
|
|
||||||
permissions: write-all
|
permissions: write-all
|
||||||
uses: juewuy/ShellCrash/.github/workflows/update_singbox_core.yaml@dev
|
uses: juewuy/ShellCrash/.github/workflows/update_singbox_core.yaml@dev
|
||||||
with:
|
with:
|
||||||
tag1: reF1nd/sing-box
|
tag1: reF1nd/sing-box
|
||||||
tag2: reF1nd-dev
|
tag2: reF1nd-dev
|
||||||
tag3: singbox_core_dev_reF1nd
|
tag4: singboxr
|
||||||
tag5: with_quic,with_dhcp,with_wireguard,with_tailscale,with_shadowsocksr,with_utls,with_clash_api,with_gvisor
|
tag5: with_gvisor,with_quic,with_dhcp,with_wireguard,with_utls,with_shadowsocksr,with_acme,with_clash_api,with_tailscale
|
||||||
|
tag6:gz
|
||||||
secrets: inherit
|
secrets: inherit
|
||||||
|
|
||||||
auto_update_singboxr_main:
|
auto_update_singboxr_dev:
|
||||||
needs: check_version
|
|
||||||
if: ${{ success() }}
|
|
||||||
permissions: write-all
|
permissions: write-all
|
||||||
uses: juewuy/ShellCrash/.github/workflows/update_singbox_core.yaml@dev
|
uses: juewuy/ShellCrash/.github/workflows/update_meta_core.yaml@dev
|
||||||
with:
|
with:
|
||||||
tag1: reF1nd/sing-box
|
tag1: MetaCubeX/mihomo
|
||||||
tag2: reF1nd-main
|
tag2: Alpha
|
||||||
tag3: singbox_core_reF1nd
|
tag4: meta
|
||||||
tag5: with_quic,with_dhcp,with_wireguard,with_tailscale,with_shadowsocksr,with_utls,with_clash_api,with_gvisor
|
tag5: with_gvisor
|
||||||
|
tag6:gz
|
||||||
secrets: inherit
|
secrets: inherit
|
||||||
|
|
||||||
cleanup:
|
cleanup:
|
||||||
needs: check_version
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: cleanup
|
- name: cleanup
|
||||||
|
|||||||
Reference in New Issue
Block a user