diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..b01b523 --- /dev/null +++ b/.github/workflows/release.yml @@ -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/go-release-action@v1.22 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + goos: ${{ matrix.goos }} + goarch: ${{ matrix.goarch }} + goversion: "1.17" + binary_name: "clang-tidy-cache" diff --git a/Makefile b/Makefile index 9fd9a1e..39d1fbd 100644 --- a/Makefile +++ b/Makefile @@ -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 \ No newline at end of file