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