Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
on:
release:
types: [created]

jobs:
releases:
name: Release Binaries
runs-on: ubuntu-latest
strategy:
matrix:
goos: [linux, windows, darwin]
goarch: ["386", amd64, arm64]
exclude:
- goos: darwin
goarch: "386"
- goos: windows
goarch: arm64

steps:
- uses: actions/checkout@v2
- uses: wangyoucao577/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
goos: ${{ matrix.goos }}
goarch: ${{ matrix.goarch }}
goversion: "1.17"
binary_name: "clang-tidy-cache"
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@ default:
release:
GOOS=darwin GOARCH=amd64 go build -o clang-tidy-cache-darwin-amd64 github.com/ejfitzgerald/clang-tidy-cache
GOOS=linux GOARCH=amd64 go build -o clang-tidy-cache-linux-amd64 github.com/ejfitzgerald/clang-tidy-cache
GOOS=windows GOARCH=amd64 go build -o clang-tidy-cache-windows-amd64.exe github.com/ejfitzgerald/clang-tidy-cache

.PHONY: default release