Skip to content

Commit a8dd581

Browse files
aminyasjlamerton
authored andcommitted
ci: add release ci to upload binaries for all os and architectures
1 parent 95580ce commit a8dd581

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

.github/workflows/release.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
on:
2+
release:
3+
types: [created]
4+
5+
jobs:
6+
releases:
7+
name: Release Binaries
8+
runs-on: ubuntu-latest
9+
strategy:
10+
matrix:
11+
goos: [linux, windows, darwin]
12+
goarch: ["386", amd64, arm64]
13+
exclude:
14+
- goos: darwin
15+
goarch: "386"
16+
- goos: windows
17+
goarch: arm64
18+
19+
steps:
20+
- uses: actions/checkout@v2
21+
- uses: wangyoucao577/[email protected]
22+
with:
23+
github_token: ${{ secrets.GITHUB_TOKEN }}
24+
goos: ${{ matrix.goos }}
25+
goarch: ${{ matrix.goarch }}
26+
goversion: "1.17"
27+
binary_name: "clang-tidy-cache"

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@ default:
44
release:
55
GOOS=darwin GOARCH=amd64 go build -o clang-tidy-cache-darwin-amd64 github.com/ejfitzgerald/clang-tidy-cache
66
GOOS=linux GOARCH=amd64 go build -o clang-tidy-cache-linux-amd64 github.com/ejfitzgerald/clang-tidy-cache
7+
GOOS=windows GOARCH=amd64 go build -o clang-tidy-cache-windows-amd64.exe github.com/ejfitzgerald/clang-tidy-cache
78

89
.PHONY: default release

0 commit comments

Comments
 (0)