1
0
mirror of https://github.com/Mrs4s/go-cqhttp.git synced 2025-05-11 22:25:44 +08:00
zhanglianxin 59cce1d568
Update release.yml
Use env `CGO_ENABLED=0`
2020-08-05 04:20:51 +08:00

28 lines
723 B
YAML

on:
release:
types: [created]
jobs:
releases-matrix:
name: Release Go Binary
runs-on: ubuntu-latest
strategy:
matrix:
# build and publish in parallel: linux/386, linux/amd64, windows/386, windows/amd64, darwin/386, darwin/amd64
goos: [linux, windows, darwin]
goarch: ["386", amd64, arm]
exclude:
- goos: darwin
goarch: arm
steps:
- uses: actions/checkout@v2
- uses: wangyoucao577/go-release-action@master
env:
CGO_ENABLED: 0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
goos: ${{ matrix.goos }}
goarch: ${{ matrix.goarch }}
ldflags: "-w -s"