diff --git a/.golangci.yml b/.golangci.yml index 8cde165..71ac31f 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -46,7 +46,7 @@ linters: - staticcheck - bodyclose - structcheck - - lll + # - lll # - gomnd - goprintffuncname - interfacer @@ -113,4 +113,4 @@ linters-settings: packages-with-error-message: - io/ioutil: 'io/ioutil is deprecated. Use package io or os instead.' - github.com/stretchr/testify/assert: 'github.com/stretchr/testify/require should be used instead.' - include-go-root: true + include-go-root: true \ No newline at end of file diff --git a/.goreleaser.yml b/.goreleaser.yml index c0639ae..c801141 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -59,8 +59,73 @@ builds: goamd64: v1 env: - CC=o64-clang + - id: token-faucet + main: ./cmd/token-faucet + binary: token-faucet + flags: + - -v + goos: + - linux + - darwin + goarch: + - amd64 + - arm64 + env: + - CGO_ENABLED=1 + - CGO_CFLAGS=-O -D__BLST_PORTABLE__ # Set the CGO flags to use the portable version of BLST + overrides: + - goos: linux + goarch: arm64 + env: + - CC=aarch64-linux-gnu-gcc + - goos: darwin + goarch: arm64 + env: + - CC=oa64-clang + - goos: darwin + goarch: amd64 + goamd64: v1 + env: + - CC=o64-clang + - id: token-feed + main: ./cmd/token-feed + binary: token-feed + flags: + - -v + goos: + - linux + - darwin + goarch: + - amd64 + - arm64 + env: + - CGO_ENABLED=1 + - CGO_CFLAGS=-O -D__BLST_PORTABLE__ # Set the CGO flags to use the portable version of BLST + overrides: + - goos: linux + goarch: arm64 + env: + - CC=aarch64-linux-gnu-gcc + - goos: darwin + goarch: arm64 + env: + - CC=oa64-clang + - goos: darwin + goarch: amd64 + goamd64: v1 + env: + - CC=o64-clang + +checksum: + name_template: "tokenvm_checksums.txt" + +archives: + - id: default + name_template: 'tokenvm_{{ .Version }}_{{ .Os }}_{{ .Arch }}' release: + make_latest: false # Should be done manually + mode: 'keep-existing' # Should not override releases github: owner: AnomalyFi - name: nodekit-seq + name: nodekit-seq \ No newline at end of file