File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ permissions:
10
10
11
11
env :
12
12
GORELEASER_VERSION : v1.22.3
13
+ UPX_VERSION : 4.2.4
13
14
14
15
jobs :
15
16
goreleaser :
18
19
- name : Checkout code
19
20
uses : actions/checkout@v4
20
21
22
+ - name : Install UPX
23
+ run : |
24
+ cd /tmp
25
+ F="upx-${UPX_VERSION}-amd64_linux"
26
+ curl -OL "https://github.com/upx/upx/releases/download/v${UPX_VERSION}/${F}.tar.xz"
27
+ tar xf "${F}.tar.xz"
28
+ mv "${F}/upx" /usr/local/bin/
29
+ upx --version
30
+
21
31
- name : Unshallow repo
22
32
run : git fetch --prune --unshallow --tags -f
23
33
32
42
-e CGO_ENABLED=1 \
33
43
--env-file .release-env \
34
44
-v `pwd`:/src \
45
+ -v /usr/local/bin/upx:/usr/local/bin/upx \
35
46
-w /src \
36
47
ghcr.io/goreleaser/goreleaser-cross:${{ env.GORELEASER_VERSION }} \
37
48
release --clean
You can’t perform that action at this time.
0 commit comments