Skip to content

Commit

Permalink
test: 测试hamster1963编译脚本
Browse files Browse the repository at this point in the history
  • Loading branch information
hamster1963 committed Aug 9, 2023
1 parent 7caf6bb commit 4c7f0f4
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/go-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,17 @@ jobs:
goarch: [amd64] # 需要打包的架构
steps:
- uses: actions/checkout@v3
- uses: wangyoucao577/go-release-action@v1
- uses: hamster1963/go-release-action@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }} # 一个默认的变量,用来实现往 Release 中添加文件
goos: ${{ matrix.goos }}
goarch: ${{ matrix.goarch }}
goversion: 1.18 # 可以指定编译使用的 Golang 版本
goversion: 1.21 # 可以指定编译使用的 Golang 版本
binary_name: "updater" # 可以指定二进制文件的名称
pre_command: export CGO_ENABLED=0 && export GODEBUG=http2client=0
overwrite: true
asset_name: "updater_${{ matrix.goos }}_${{ matrix.goarch }}" # 可以指定二进制文件的名称
compress_assets: OFF # 可以指定是否压缩二进制文件
compress_assets: OFF # 可以指定是否压缩二进制文件



0 comments on commit 4c7f0f4

Please sign in to comment.