Skip to content

Commit ad3fdf4

Browse files
committed
Auto build binaries for different OS on release
Setup Github actions to build BSD, Darwin, Linux, and Windows binaries. Fix #21
1 parent 356943b commit ad3fdf4

4 files changed

Lines changed: 96 additions & 0 deletions

File tree

.github/workflows/release-bsd.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Go
2+
3+
on:
4+
release:
5+
types: [ created ]
6+
7+
jobs:
8+
releases-matrix:
9+
name: Release Go Binary (BSDs)
10+
runs-on: ubuntu-latest
11+
strategy:
12+
matrix:
13+
goos: [freebsd, netbsd, openbsd]
14+
goarch: ["386", amd64, arm, arm64]
15+
steps:
16+
- uses: actions/checkout@v2
17+
- uses: wangyoucao577/go-release-action@v1.15
18+
with:
19+
github_token: ${{ secrets.GITHUB_TOKEN }}
20+
goos: ${{ matrix.goos }}
21+
goarch: ${{ matrix.goarch }}
22+
binary_name: "tz"
23+
sha256sum: true
24+
md5sum: false
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Go
2+
3+
on:
4+
release:
5+
types: [ created ]
6+
7+
jobs:
8+
releases-matrix:
9+
name: Release Go Binary (Darwin)
10+
runs-on: ubuntu-latest
11+
strategy:
12+
matrix:
13+
goos: [darwin]
14+
goarch: ["386", amd64]
15+
steps:
16+
- uses: actions/checkout@v2
17+
- uses: wangyoucao577/go-release-action@v1.15
18+
with:
19+
github_token: ${{ secrets.GITHUB_TOKEN }}
20+
goos: ${{ matrix.goos }}
21+
goarch: ${{ matrix.goarch }}
22+
binary_name: "tz"
23+
sha256sum: true
24+
md5sum: false
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Go
2+
3+
on:
4+
release:
5+
types: [ created ]
6+
7+
jobs:
8+
releases-matrix:
9+
name: Release Go Binary (Linux)
10+
runs-on: ubuntu-latest
11+
strategy:
12+
matrix:
13+
goos: [linux]
14+
goarch: ["386", amd64, arm, arm64, ppc64le, s390x]
15+
steps:
16+
- uses: actions/checkout@v2
17+
- uses: wangyoucao577/go-release-action@v1.15
18+
with:
19+
github_token: ${{ secrets.GITHUB_TOKEN }}
20+
goos: ${{ matrix.goos }}
21+
goarch: ${{ matrix.goarch }}
22+
binary_name: "tz"
23+
sha256sum: true
24+
md5sum: false
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Go
2+
3+
on:
4+
release:
5+
types: [ created ]
6+
7+
jobs:
8+
releases-matrix:
9+
name: Release Go Binary (Windows)
10+
runs-on: ubuntu-latest
11+
strategy:
12+
matrix:
13+
goos: [windows]
14+
goarch: ["386", amd64, arm]
15+
steps:
16+
- uses: actions/checkout@v2
17+
- uses: wangyoucao577/go-release-action@v1.15
18+
with:
19+
github_token: ${{ secrets.GITHUB_TOKEN }}
20+
goos: ${{ matrix.goos }}
21+
goarch: ${{ matrix.goarch }}
22+
binary_name: "tz"
23+
sha256sum: true
24+
md5sum: false

0 commit comments

Comments
 (0)