v0.1.11 🌈 #12
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build Release | |
on: | |
release: | |
types: [created,published] | |
permissions: | |
contents: read | |
jobs: | |
build-go-binary: | |
permissions: | |
contents: write # for build-go-binary | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
goos: [ linux, windows, darwin ] # 需要打包的系统 | |
goarch: [ amd64, arm64 ] # 需要打包的架构 | |
exclude: # 排除某些平台和架构 | |
- goarch: arm64 | |
goos: windows | |
steps: | |
- name: Checkout the code | |
uses: actions/checkout@v2 | |
- name: Create version file | |
run: echo ${{ github.event.release.tag_name }} > VERSION | |
- name: Parallel build | |
uses: wangyoucao577/[email protected] | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
goos: ${{ matrix.goos }} | |
goarch: ${{ matrix.goarch }} | |
goversion: 1.18 | |
pre_command: export CGO_ENABLED=0 && export GODEBUG=http2client=0 | |
executable_compression: "upx -9" | |
md5sum: false | |
project_path: "./code" | |
binary_name: "feishu-chatgpt" | |
extra_files: ./code/config.example.yaml readme.md LICENSE ./code/role_list.yaml |