Skip to content

Commit b1f97d3

Browse files
authored
Try all goreleasers (#710)
1 parent 8faaeb3 commit b1f97d3

File tree

2 files changed

+4
-9
lines changed

2 files changed

+4
-9
lines changed

.github/workflows/tag.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
run: npm i && npm run build
2222
working-directory: frontend
2323
- name: Install UPX
24-
run: sudo apt-get install -y upx gcc-multilib g++-multilib
24+
run: sudo apt-get install -y upx gcc-multilib g++-multilib gcc-mingw-w64 aarch64-linux-gnu-gcc
2525
- name: Run GoReleaser
2626
uses: goreleaser/goreleaser-action@v6
2727
with:

backend/.goreleaser.yaml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,6 @@ builds:
5858

5959
# Build configuration for freebsd without arm & upx
6060
- id: freeBSD
61-
env:
62-
- CGO_ENABLED=1
63-
tags:
64-
- mupdf
6561
ldflags: *ldflags
6662
main: main.go
6763
binary: filebrowser
@@ -75,10 +71,6 @@ builds:
7571

7672
# Build configuration for macos without upx
7773
- id: macos
78-
env:
79-
- CGO_ENABLED=1
80-
tags:
81-
- mupdf
8274
ldflags: *ldflags
8375
main: main.go
8476
binary: filebrowser
@@ -87,6 +79,9 @@ builds:
8779
goarch:
8880
- amd64
8981
- arm64
82+
hooks:
83+
post:
84+
- upx {{ .Path }} # Compress the binary with UPX
9085

9186
archives:
9287
- name_template: >

0 commit comments

Comments
 (0)