Skip to content

Commit 39b0fe4

Browse files
committed
ci : Update release job
- Add darwin OS - Add UPX executable compression
1 parent a0cb02c commit 39b0fe4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
name: release
2+
13
on:
24
release:
35
types: [created]
@@ -9,7 +11,7 @@ jobs:
911
strategy:
1012
matrix:
1113
# build and publish in parallel: linux/amd64, linux/arm64, windows/amd64
12-
goos: [linux, windows]
14+
goos: [linux, windows, darwin]
1315
goarch: [amd64, arm64]
1416
exclude:
1517
- goarch: arm64
@@ -43,3 +45,4 @@ jobs:
4345
goarch: ${{ matrix.goarch }}
4446
binary_name: "gallery-web"
4547
ldflags: -X "github.com/michaelcoll/gallery-web/cmd.version=${{ env.APP_VERSION }}" -s -w
48+
executable_compression: upx

0 commit comments

Comments
 (0)