From 0409de0ea9245c811a070175e27f66b3bd6edce3 Mon Sep 17 00:00:00 2001 From: Martial BE Date: Wed, 20 Mar 2024 11:54:38 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=9A=20ci:=20Update=20build=20command?= =?UTF-8?q?=20in=20macos-release.yml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/macos-release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/macos-release.yml b/.github/workflows/macos-release.yml index 722df0a0..ae8436b5 100644 --- a/.github/workflows/macos-release.yml +++ b/.github/workflows/macos-release.yml @@ -33,7 +33,7 @@ jobs: - name: Build Backend run: | go mod download - go build -ldflags "-X 'one-api/common.Version=$(git describe --tags)'" -o one-api-macos + go build -ldflags "-s -w -X 'one-api/common.Version=$(git describe --tags)'" -o one-api-macos - name: Release uses: softprops/action-gh-release@v1 if: startsWith(github.ref, 'refs/tags/')