generated from SidingsMedia/template
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (37 loc) · 1016 Bytes
/
go-release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# SPDX-FileCopyrightText: 2023 Matthew Nickson <mnickson@sidingsmedia.com>
# SPDX-License-Identifier: CC0-1.0
name: Go
on:
release:
types:
- created
jobs:
releases-matrix:
name: Release Go Binary
runs-on: ubuntu-latest
permissions:
contents: write
strategy:
matrix:
# build and publish in parallel: linux/amd64
goos: [linux, freebsd, darwin]
goarch: [amd64, arm, arm64, 386]
exclude:
- goarch: 386
goos: darwin
- goarch: arm
goos: darwin
- goarch: arm64
goos: darwin
goarm:
- 7
steps:
- uses: actions/checkout@v4
- uses: wangyoucao577/go-release-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
goos: ${{ matrix.goos }}
goarch: ${{ matrix.goarch }}
goversion: "https://dl.google.com/go/go1.19.6.linux-amd64.tar.gz"
binary_name: "messaging"
ldflags: "-s -w"