From 52370ff11f5fefdfa10cb8c8d3b024ff69e03f85 Mon Sep 17 00:00:00 2001 From: juewuy Date: Wed, 7 Feb 2024 08:00:53 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dsingboxp=E7=BC=96=E8=AF=91?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/update_singbox_core.yaml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/update_singbox_core.yaml b/.github/workflows/update_singbox_core.yaml index 2583842..b27cc70 100644 --- a/.github/workflows/update_singbox_core.yaml +++ b/.github/workflows/update_singbox_core.yaml @@ -118,6 +118,7 @@ jobs: GOARM: ${{ matrix.goarm }} GOMIPS: ${{ matrix.gomips }} CGO_ENABLED: 0 + REPO: ${{ github.event.inputs.tag1 }} TAGS: ${{needs.sing-box.outputs.tags}} VERSION: ${{needs.sing-box.outputs.version}} steps: @@ -133,6 +134,18 @@ jobs: with: go-version: ${{ steps.go.outputs.version }} + - name: checkout sing repository + if: ${{ env.REPO == 'PuerNya/sing-box' }} + uses: actions/checkout@v4.1.1 + with: + ref: fix-interface + path: sing + repository: PuerNya/sing + + - name: replace sing + if: ${{ env.REPO == 'PuerNya/sing-box' }} + run: sed -i 's/^\/\/replace github.com.*$/replace github.com\/sagernet\/sing => .\/sing/' go.mod + - name: build core id: build run: go build -v -trimpath -ldflags "-X 'github.com/sagernet/sing-box/constant.Version=${VERSION}' -s -w -buildid=" -tags "${TAGS}" ./cmd/sing-box