diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index f236f89..36be45a 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -7,14 +7,13 @@ on: jobs: nonposix: runs-on: ubuntu-latest + container: ghcr.io/carapace-sh/go:1.23.0 steps: - name: shallow clone uses: actions/checkout@v4 - - name: Set up Go - uses: actions/setup-go@v5 - with: - go-version: '1.23.0' + - name: fix git safe.directory + run: git config --global --add safe.directory '*' - name: Replace dependency run: | @@ -29,6 +28,7 @@ jobs: build: runs-on: ubuntu-latest + container: ghcr.io/carapace-sh/go:1.23.0 steps: - name: shallow clone uses: actions/checkout@v4 @@ -40,10 +40,8 @@ jobs: with: fetch-depth: 0 - - name: Set up Go - uses: actions/setup-go@v5 - with: - go-version: '1.23.0' + - name: fix git safe.directory + run: git config --global --add safe.directory '*' - name: Build run: go build -v ./... diff --git a/.goreleaser.yml b/.goreleaser.yml index ad9b405..20dec13 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -3,7 +3,8 @@ before: hooks: - go mod download builds: - - env: + - id: default + env: - CGO_ENABLED=0 goos: - linux @@ -11,11 +12,30 @@ builds: - darwin main: ./cmd/carapace-spec binary: carapace-spec + - id: termux + env: + - CGO_ENABLED=1 + goos: + - android + goarch: + - amd64 + - arm64 + - arm + - "386" + main: ./cmd/carapace-spec + binary: carapace-spec + gobinary: go-termux archives: - - name_template: '{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}' + - id: default + builds: + - default format_overrides: - goos: windows format: zip + - id: termux + builds: + - termux + name_template: '{{ .Binary }}_{{ .Version }}_termux_{{ .Arch }}{{ with .Arm }}v{{ . }}{{ end }}{{ with .Mips }}_{{ . }}{{ end }}{{ if not (eq .Amd64 "v1") }}{{ .Amd64 }}{{ end }}' brews: -