Skip to content

Commit

Permalink
Merge pull request #309 from carapace-sh/termux
Browse files Browse the repository at this point in the history
goreleaser: added termux
  • Loading branch information
rsteube authored Oct 27, 2024
2 parents 84fb4f9 + d3a43fb commit c02aa88
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 10 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand All @@ -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
Expand All @@ -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 ./...
Expand Down
24 changes: 22 additions & 2 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,39 @@ before:
hooks:
- go mod download
builds:
- env:
- id: default
env:
- CGO_ENABLED=0
goos:
- linux
- windows
- 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:
-
Expand Down

0 comments on commit c02aa88

Please sign in to comment.