-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature: Build binaries and automatically create release on Tag creat…
…ion (#47) * chore: updated linter version * chore: upgraded deps * fix: linter issues after upgrading * feat: build binaries on release, adding tag * fix: install cross compilation for ARM64 * fix: add new flags for compilation * fix: turn off arm64 for testing * fix: trying another version of build configurations * fix: replaced name, need to test * chore: minor formatting and spelling fix * fix: for windows path, suggestion from copilot * fix: attempt to build with cgo enabled * fix: adding cache to speed up runs * fix: removing additional vars * test: working on linux only release * fix: for yaml linter * fix: file extension does not match * fix: names, tags, deprecated fields * fix: add changelog and checksums * feat: added darwin binary * fix: for removing gcc from darwin * fix: attempt to fix a perm issue on installing golangci * fix: add more logging to lint install * fix: set the gopath env * fix: attempt to overwrite go if detected * fix: working on safer brew execution * fix: only run one install * chore: cleanup of files * chore: cleanup old code * fix: added more timeout to linting * fix: only install if needed * fix: improved lint function * fix: make the ids unique
- Loading branch information
Showing
14 changed files
with
299 additions
and
175 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
# Make sure to check the documentation at http://goreleaser.com | ||
# --------------------------- | ||
# General | ||
# --------------------------- | ||
before: | ||
hooks: | ||
- make all | ||
snapshot: | ||
name_template: "{{ .Tag }}" | ||
changelog: | ||
sort: asc | ||
filters: | ||
exclude: | ||
- '^.github:' | ||
- '^.vscode:' | ||
- '^docs:' | ||
- '^test:' | ||
|
||
# --------------------------- | ||
# Builder | ||
# | ||
# CGO is enabled and inspiration came from: | ||
# https://github.com/goreleaser/goreleaser-cross-example | ||
# https://github.com/goreleaser/goreleaser-cross-example-sysroot | ||
# https://github.com/DataDog/extendeddaemonset/blob/main/.goreleaser-for-darwin.yaml | ||
# --------------------------- | ||
builds: | ||
- id: darwin-build | ||
main: ./cmd/ | ||
binary: alert_system | ||
goos: | ||
- darwin | ||
goarch: | ||
- amd64 | ||
- arm64 | ||
env: | ||
- CGO_ENABLED=1 | ||
mod_timestamp: "{{ .CommitTimestamp }}" | ||
ldflags: | ||
- -s -w -X main.version={{.Version}} | ||
|
||
# --------------------------- | ||
# Archives + Checksums | ||
# --------------------------- | ||
archives: | ||
- id: alert_system_darwin | ||
builds: | ||
- darwin-build | ||
name_template: "alert_system_{{ .Version }}_{{ .Os }}_{{ .Arch }}" | ||
wrap_in_directory: false | ||
format: zip | ||
files: | ||
- LICENSE | ||
checksum: | ||
name_template: "checksums.txt" | ||
algorithm: sha256 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
# Make sure to check the documentation at http://goreleaser.com | ||
# --------------------------- | ||
# General | ||
# --------------------------- | ||
before: | ||
hooks: | ||
- make all | ||
snapshot: | ||
name_template: "{{ .Tag }}" | ||
changelog: | ||
sort: asc | ||
filters: | ||
exclude: | ||
- '^.github:' | ||
- '^.vscode:' | ||
- '^docs:' | ||
- '^test:' | ||
|
||
# --------------------------- | ||
# Builder | ||
# | ||
# CGO is enabled and inspiration came from: | ||
# https://github.com/goreleaser/goreleaser-cross-example | ||
# https://github.com/goreleaser/goreleaser-cross-example-sysroot | ||
# https://github.com/DataDog/extendeddaemonset/blob/main/.goreleaser-for-linux.yaml | ||
# --------------------------- | ||
builds: | ||
- id: linux-build | ||
main: ./cmd/ | ||
binary: alert_system | ||
goos: | ||
- linux | ||
goarch: | ||
- amd64 | ||
- arm64 | ||
env: | ||
- CGO_ENABLED=1 | ||
mod_timestamp: "{{ .CommitTimestamp }}" | ||
ldflags: | ||
- -s -w -X main.version={{.Version}} | ||
overrides: | ||
- goos: linux | ||
goarch: arm64 | ||
env: | ||
- CC=aarch64-linux-gnu-gcc | ||
|
||
# --------------------------- | ||
# Archives + Checksums | ||
# --------------------------- | ||
archives: | ||
- id: alert_system_linux | ||
builds: | ||
- linux-build | ||
name_template: "alert_system_{{ .Version }}_{{ .Os }}_{{ .Arch }}" | ||
wrap_in_directory: false | ||
format: zip | ||
files: | ||
- LICENSE | ||
checksum: | ||
name_template: "checksums.txt" | ||
algorithm: sha256 |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.