Skip to content

Commit

Permalink
Merge branch 'main' of github.com:ZJU-PPL/pack
Browse files Browse the repository at this point in the history
  • Loading branch information
permui committed Oct 3, 2022
2 parents f1469eb + 2498ec2 commit 07b37fa
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# .github/workflows/release.yaml

on:
workflow_dispatch:
release:
types: [published]

jobs:
releases-matrix:
name: Release Go Binary
runs-on: ubuntu-latest
env:
CGO_ENABLED: 0
strategy:
matrix:
# build and publish in parallel: linux/386, linux/amd64, linux/arm64, windows/386, windows/amd64, darwin/amd64, darwin/arm64
goos: [linux, windows, darwin]
goarch: ["386", amd64, arm64]
exclude:
- goarch: "386"
goos: darwin
- goarch: arm64
goos: windows
steps:
- uses: actions/checkout@v3
- uses: wangyoucao577/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
goos: ${{ matrix.goos }}
goarch: ${{ matrix.goarch }}
goversion: "1.19"
project_path: "."
binary_name: "pack"
md5sum: FALSE
asset_name: pack-${{ matrix.goos }}-${{ matrix.goarch }}
compress_assets: OFF
overwrite: TRUE

0 comments on commit 07b37fa

Please sign in to comment.