From f51edfa0b451708bd92456d7bc65bc06f5178137 Mon Sep 17 00:00:00 2001 From: Nite07 Date: Thu, 3 Oct 2024 03:18:24 +0800 Subject: [PATCH] =?UTF-8?q?=E2=AC=86=EF=B8=8F=20Update=20to=20go=201.23=20?= =?UTF-8?q?=F0=9F=93=9D=20Add=20upx=20to=20workflow?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/release.yml | 5 +++++ .goreleaser.yaml | 4 ++++ go.mod | 2 +- 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index aa60754..3560ccb 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -18,6 +18,11 @@ jobs: - name: Set up Go uses: actions/setup-go@v4 + - name: Install UPX + uses: crazy-max/ghaction-upx@v3 + with: + install-only: true + - name: Run GoReleaser uses: goreleaser/goreleaser-action@v5 with: diff --git a/.goreleaser.yaml b/.goreleaser.yaml index ea2d996..4f010f9 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -1,3 +1,4 @@ +version: 2 project_name: sub2sing-box builds: - env: @@ -27,3 +28,6 @@ archives: - templates release: draft: true +upx: + - enabled: true + compress: best diff --git a/go.mod b/go.mod index 22204de..9a71839 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/nitezs/sub2sing-box -go 1.21.5 +go 1.23 require ( github.com/sagernet/sing-box v1.10.0-beta.11