Skip to content

Commit 21d204f

Browse files
committed
again
1 parent fb6afc2 commit 21d204f

4 files changed

Lines changed: 130 additions & 4 deletions

File tree

.github/goreleaser.darwin.yml

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
builds:
2+
- id: darwin
3+
env:
4+
- CGO_ENABLED=1
5+
ldflags:
6+
- -s -w -X github.com/unblocked/chissl/share.BuildVersion={{.Version}}
7+
flags:
8+
- -trimpath
9+
goos:
10+
- darwin
11+
goarch:
12+
- amd64
13+
- arm64
14+
15+
archives:
16+
- format: binary
17+
files:
18+
- none*
19+
- id: homebrew
20+
name_template: >-
21+
{{- .ProjectName }}_
22+
{{- title .Os }}_
23+
{{- if eq .Arch "amd64" }}x86_64
24+
{{- else if eq .Arch "386" }}i386
25+
{{- else }}{{ .Arch }}{{ end }}
26+
{{- if .Arm }}v{{ .Arm }}{{ end -}}
27+
format: zip
28+
29+
universal_binaries:
30+
- replace: true
31+
32+
release:
33+
draft: true
34+
prerelease: auto
35+
36+
changelog:
37+
sort: asc
38+
filters:
39+
exclude:
40+
- "^docs:"
41+
- "^test:"
42+
43+
brews:
44+
- name: chissl
45+
homepage: "https://github.com/unblocked/chissl"
46+
directory: Formula
47+
description: "HTTPS reverse tunnel server/client"
48+
license: "MIT"
49+
goarm: 7
50+
goamd64: v1
51+
ids:
52+
- homebrew
53+
install: |
54+
bin.install "chissl"
55+
repository:
56+
owner: unblocked
57+
name: chissl
58+
branch: brew-releases/{{ .Version }}
59+
token: "{{ .Env.GITHUB_TOKEN }}"
60+
pull_request:
61+
enabled: true
62+
base:
63+
owner: unblocked
64+
name: chissl
65+
branch: main
66+
commit_author:
67+
name: goreleaserbot
68+
email: bot@goreleaser.com
69+
commit_msg_template: "Brew formula update for {{ .ProjectName }} version {{ .Version }} tag {{ .Tag }}"
70+

.github/goreleaser.linuxwin.yml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
builds:
2+
- id: linux_windows
3+
env:
4+
- CGO_ENABLED=1
5+
ldflags:
6+
- -s -w -X github.com/unblocked/chissl/share.BuildVersion={{.Version}}
7+
flags:
8+
- -trimpath
9+
goos:
10+
- linux
11+
- windows
12+
goarch:
13+
- amd64
14+
- arm64
15+
- arm
16+
goarm:
17+
- 7
18+
overrides:
19+
- goos: linux
20+
goarch: arm
21+
goarm: 7
22+
env:
23+
- CC=arm-linux-gnueabihf-gcc
24+
- goos: linux
25+
goarch: arm64
26+
env:
27+
- CC=aarch64-linux-gnu-gcc
28+
29+
archives:
30+
- format: binary
31+
files:
32+
- none*
33+
- id: homebrew
34+
name_template: >-
35+
{{- .ProjectName }}_
36+
{{- title .Os }}_
37+
{{- if eq .Arch "amd64" }}x86_64
38+
{{- else if eq .Arch "386" }}i386
39+
{{- else }}{{ .Arch }}{{ end }}
40+
{{- if .Arm }}v{{ .Arm }}{{ end -}}
41+
format: zip
42+
43+
universal_binaries:
44+
- replace: true
45+
46+
release:
47+
draft: true
48+
prerelease: auto
49+
50+
changelog:
51+
sort: asc
52+
filters:
53+
exclude:
54+
- "^docs:"
55+
- "^test:"
56+

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ jobs:
106106
with:
107107
distribution: goreleaser
108108
version: v2.4.0
109-
args: release --verbose --config .github/goreleaser.yml --id linux_windows
109+
args: release --verbose --config .github/goreleaser.linuxwin.yml
110110
env:
111111
GORELEASER_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
112112
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -118,7 +118,7 @@ jobs:
118118
with:
119119
distribution: goreleaser
120120
version: v2.4.0
121-
args: release --verbose --config .github/goreleaser.yml --id darwin
121+
args: release --verbose --config .github/goreleaser.darwin.yml
122122
env:
123123
GORELEASER_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
124124
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/release-dry-run.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ jobs:
6161
with:
6262
distribution: goreleaser
6363
version: v2.4.0
64-
args: release --verbose --skip=publish --skip=sign --snapshot --clean --config .github/goreleaser.yml --id linux_windows
64+
args: release --verbose --skip=publish --skip=sign --snapshot --clean --config .github/goreleaser.linuxwin.yml
6565
env:
6666
CGO_ENABLED: 1
6767

@@ -71,7 +71,7 @@ jobs:
7171
with:
7272
distribution: goreleaser
7373
version: v2.4.0
74-
args: release --verbose --skip=publish --skip=sign --snapshot --clean --config .github/goreleaser.yml --id darwin
74+
args: release --verbose --skip=publish --skip=sign --snapshot --clean --config .github/goreleaser.darwin.yml
7575
env:
7676
CGO_ENABLED: 1
7777

0 commit comments

Comments
 (0)