Skip to content

Commit

Permalink
Auto build binaries for different OS on release
Browse files Browse the repository at this point in the history
Setup Github actions to build BSD, Darwin, Linux, and Windows binaries.
Fix #21
  • Loading branch information
oz committed Apr 1, 2021
1 parent 356943b commit ad3fdf4
Show file tree
Hide file tree
Showing 4 changed files with 96 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/release-bsd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Go

on:
release:
types: [ created ]

jobs:
releases-matrix:
name: Release Go Binary (BSDs)
runs-on: ubuntu-latest
strategy:
matrix:
goos: [freebsd, netbsd, openbsd]
goarch: ["386", amd64, arm, arm64]
steps:
- uses: actions/checkout@v2
- uses: wangyoucao577/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
goos: ${{ matrix.goos }}
goarch: ${{ matrix.goarch }}
binary_name: "tz"
sha256sum: true
md5sum: false
24 changes: 24 additions & 0 deletions .github/workflows/release-darwin.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Go

on:
release:
types: [ created ]

jobs:
releases-matrix:
name: Release Go Binary (Darwin)
runs-on: ubuntu-latest
strategy:
matrix:
goos: [darwin]
goarch: ["386", amd64]
steps:
- uses: actions/checkout@v2
- uses: wangyoucao577/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
goos: ${{ matrix.goos }}
goarch: ${{ matrix.goarch }}
binary_name: "tz"
sha256sum: true
md5sum: false
24 changes: 24 additions & 0 deletions .github/workflows/release-linux.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Go

on:
release:
types: [ created ]

jobs:
releases-matrix:
name: Release Go Binary (Linux)
runs-on: ubuntu-latest
strategy:
matrix:
goos: [linux]
goarch: ["386", amd64, arm, arm64, ppc64le, s390x]
steps:
- uses: actions/checkout@v2
- uses: wangyoucao577/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
goos: ${{ matrix.goos }}
goarch: ${{ matrix.goarch }}
binary_name: "tz"
sha256sum: true
md5sum: false
24 changes: 24 additions & 0 deletions .github/workflows/release-windows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Go

on:
release:
types: [ created ]

jobs:
releases-matrix:
name: Release Go Binary (Windows)
runs-on: ubuntu-latest
strategy:
matrix:
goos: [windows]
goarch: ["386", amd64, arm]
steps:
- uses: actions/checkout@v2
- uses: wangyoucao577/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
goos: ${{ matrix.goos }}
goarch: ${{ matrix.goarch }}
binary_name: "tz"
sha256sum: true
md5sum: false

0 comments on commit ad3fdf4

Please sign in to comment.