Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions .github/goreleaser.darwin.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
version: 2

builds:
- id: darwin
- id: client
main: .
binary: chissl
env:
- CGO_ENABLED=1
- CGO_ENABLED=0
ldflags:
- -s -w -X github.com/unblocked/chissl/share.BuildVersion={{.Version}}
flags:
Expand All @@ -15,10 +17,9 @@ builds:
- arm64

archives:
- format: binary
files:
- none*
- id: homebrew
builds:
- client
name_template: >-
{{- .ProjectName }}_
{{- title .Os }}_
Expand Down Expand Up @@ -59,7 +60,7 @@ brews:
owner: unblocked
name: chissl
branch: brew-releases/{{ .Version }}
token: "{{ .Env.GITHUB_TOKEN }}"
token: "{{ .Env.HOMEBREW_TAP_TOKEN }}"
pull_request:
enabled: false
base:
Expand Down
35 changes: 32 additions & 3 deletions .github/goreleaser.linuxwin.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
version: 2

builds:
- id: linux_windows
- id: server
main: .
binary: chissl-server
env:
- CGO_ENABLED=1
ldflags:
Expand All @@ -10,29 +12,56 @@ builds:
- -trimpath
goos:
- linux
- windows
goarch:
- amd64
- arm64
- arm
goarm:
- 7
tags:
- server
overrides:
- goos: linux
goarch: arm
goarm: 7
env:
- CC=arm-linux-gnueabihf-gcc
- CGO_ENABLED=1
- goos: linux
goarch: arm64
env:
- CC=aarch64-linux-gnu-gcc
- CGO_ENABLED=1

- id: client
main: .
binary: chissl
env:
- CGO_ENABLED=0
ldflags:
- -s -w -X github.com/unblocked/chissl/share.BuildVersion={{.Version}}
flags:
- -trimpath
goos:
- linux
- windows
goarch:
- amd64
- arm64
- arm
goarm:
- 7

archives:
- format: binary
- id: server_bins
builds:
- server
format: binary
files:
- none*
- id: homebrew
builds:
- client
name_template: >-
{{- .ProjectName }}_
{{- title .Os }}_
Expand Down
Loading