File tree Expand file tree Collapse file tree 2 files changed +43
-11
lines changed Expand file tree Collapse file tree 2 files changed +43
-11
lines changed Original file line number Diff line number Diff line change 21
21
run : npm i && npm run build
22
22
working-directory : frontend
23
23
- name : Install UPX
24
- run : sudo apt-get install -y upx
24
+ run : sudo apt-get install -y upx gcc-multilib g++-multilib
25
25
- name : Run GoReleaser
26
26
uses : goreleaser/goreleaser-action@v6
27
27
with :
Original file line number Diff line number Diff line change @@ -3,8 +3,12 @@ project_name: filebrowser
3
3
version : 2
4
4
5
5
builds :
6
- # Build configuration for darwin and linux
7
- - id : default
6
+ # Build configuration for linux amd64/arm64
7
+ - id : linux
8
+ env :
9
+ - CGO_ENABLED=1
10
+ tags :
11
+ - mupdf
8
12
ldflags : &ldflags
9
13
- -s -w -X github.com/gtsteffaniak/filebrowser/backend/common/version.Version={{ .Version }} -X github.com/gtsteffaniak/filebrowser/backend/common/version.CommitSHA={{ .ShortCommit }}
10
14
main : main.go
@@ -13,8 +17,21 @@ builds:
13
17
- linux
14
18
goarch :
15
19
- amd64
16
- - arm
17
20
- arm64
21
+ hooks :
22
+ post :
23
+ - upx {{ .Path }} # Compress the binary with UPX
24
+
25
+ # Build configuration for linux
26
+ - id : linux-arm32
27
+ ldflags : &ldflags
28
+ - -s -w -X github.com/gtsteffaniak/filebrowser/backend/common/version.Version={{ .Version }} -X github.com/gtsteffaniak/filebrowser/backend/common/version.CommitSHA={{ .ShortCommit }}
29
+ main : main.go
30
+ binary : filebrowser
31
+ goos :
32
+ - linux
33
+ goarch :
34
+ - arm
18
35
goarm :
19
36
- " 6"
20
37
- " 7"
@@ -24,6 +41,10 @@ builds:
24
41
25
42
# Build configuration for windows without arm
26
43
- id : windows
44
+ env :
45
+ - CGO_ENABLED=1
46
+ tags :
47
+ - mupdf
27
48
ldflags : *ldflags
28
49
main : main.go
29
50
binary : filebrowser
@@ -35,26 +56,37 @@ builds:
35
56
post :
36
57
- upx {{ .Path }} # Compress the binary with UPX
37
58
38
- # Build configuration for macos without upx
39
- - id : macos
59
+ # Build configuration for freebsd without arm & upx
60
+ - id : freeBSD
61
+ env :
62
+ - CGO_ENABLED=1
63
+ tags :
64
+ - mupdf
40
65
ldflags : *ldflags
41
66
main : main.go
42
67
binary : filebrowser
43
68
goos :
44
- - darwin
69
+ - freebsd
45
70
goarch :
46
71
- amd64
47
- - arm64
72
+ hooks :
73
+ post :
74
+ - upx {{ .Path }} # Compress the binary with UPX
48
75
49
- # Build configuration for freebsd without arm & upx
50
- - id : freeBSD
76
+ # Build configuration for macos without upx
77
+ - id : macos
78
+ env :
79
+ - CGO_ENABLED=1
80
+ tags :
81
+ - mupdf
51
82
ldflags : *ldflags
52
83
main : main.go
53
84
binary : filebrowser
54
85
goos :
55
- - freebsd
86
+ - darwin
56
87
goarch :
57
88
- amd64
89
+ - arm64
58
90
59
91
archives :
60
92
- name_template : >
You can’t perform that action at this time.
0 commit comments