diff --git a/.github/workflows/go-binary-release.yml b/.github/workflows/go-binary-release.yml index 401cc6d..320c582 100644 --- a/.github/workflows/go-binary-release.yml +++ b/.github/workflows/go-binary-release.yml @@ -18,6 +18,8 @@ jobs: github_token: ${{ secrets.GITHUB_TOKEN }} # 一个默认的变量,用来实现往 Release 中添加文件 goos: ${{ matrix.goos }} goarch: ${{ matrix.goarch }} + pre_command: export CGO_ENABLED=0 + project_path: cmd/gateway goversion: 1.19 # 可以指定编译使用的 Golang 版本 binary_name: "fds" # 可以指定二进制文件的名称 # extra_files: README.md # 需要包含的额外文件 \ No newline at end of file