Skip to content

Commit 37aef90

Browse files
authored
feat: release binaries for more architectures (#34)
1 parent e6666e5 commit 37aef90

File tree

3 files changed

+13
-29
lines changed

3 files changed

+13
-29
lines changed

.github/workflows/main.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ on:
1212
jobs:
1313
build:
1414
name: Build
15-
runs-on: ubuntu-latest
15+
runs-on: ubuntu-22.04
1616

1717
steps:
1818
- name: Setup go
@@ -31,7 +31,7 @@ jobs:
3131

3232
test:
3333
name: Test
34-
runs-on: ubuntu-latest
34+
runs-on: ubuntu-22.04
3535

3636
steps:
3737
- name: Setup go
@@ -47,7 +47,7 @@ jobs:
4747

4848
lint:
4949
name: Lint
50-
runs-on: ubuntu-latest
50+
runs-on: ubuntu-22.04
5151

5252
steps:
5353
- name: Setup go

.github/workflows/release.yml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
jobs:
1010
build:
1111
name: Release
12-
runs-on: ubuntu-latest
12+
runs-on: ubuntu-22.04
1313

1414
steps:
1515
- name: Setup go
@@ -20,14 +20,6 @@ jobs:
2020
- name: Checkout code
2121
uses: actions/checkout@v2
2222

23-
- name: Setup upx
24-
run: |-
25-
cd "$(mktemp -d)"
26-
wget -q https://github.com/upx/upx/releases/download/v3.96/upx-3.96-amd64_linux.tar.xz
27-
tar -xf upx-3.96-amd64_linux.tar.xz
28-
sudo install upx-3.96-amd64_linux/upx /usr/bin/upx
29-
rm -rf "$PWD"
30-
3123
- name: Build and publish release artifacts
3224
uses: goreleaser/goreleaser-action@v2
3325
with:

.goreleaser.yml

Lines changed: 9 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,16 @@ builds:
44
- id: retry
55
binary: retry
66

7-
goos:
8-
- darwin
9-
- windows
10-
- linux
11-
12-
goarch:
13-
- amd64
14-
- 386
15-
16-
ignore:
17-
- goos: darwin
18-
goarch: 386
7+
targets:
8+
- darwin_amd64
9+
- darwin_arm64
10+
- linux_amd64
11+
- linux_arm64
12+
- windows_386
13+
- windows_amd64
1914

2015
flags:
16+
- -buildvcs=false
2117
- -trimpath
2218

2319
ldflags:
@@ -28,9 +24,6 @@ builds:
2824
env:
2925
- CGO_ENABLED=0
3026

31-
hooks:
32-
post: upx --best --ultra-brute "{{ .Path }}"
33-
3427
archives:
3528
- id: retry
3629
builds: [retry]
@@ -52,7 +45,6 @@ changelog:
5245

5346
brews:
5447
- name: retry
55-
ids: [retry]
5648

5749
tap:
5850
owner: joshdk
@@ -63,7 +55,7 @@ brews:
6355

6456
commit_msg_template: "feat: brew formula update for {{ .ProjectName }} {{ .Tag }}"
6557
commit_author:
66-
name: joshdk
58+
name: Josh Komoroske
6759
email: jdkomo@gmail.com
6860

6961
folder: Formula

0 commit comments

Comments
 (0)