瀏覽代碼

Add -s -w flags to go build

ayn2op 2 年之前
父節點
當前提交
260fe3718a
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      .github/workflows/ci.yml

+ 1 - 1
.github/workflows/ci.yml

@@ -16,7 +16,7 @@ jobs:
           go-version: stable
 
       - name: Build
-        run: go build .
+        run: go build -ldflags "-s -w" .
 
       - uses: actions/upload-artifact@v4
         if: ${{ github.event_name == 'push' && github.ref == format('refs/heads/{0}', github.event.repository.default_branch) }}