Skip to content

Commit 2030b1d

Browse files
authored
feature: Compression on go build
1 parent ba032d3 commit 2030b1d

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

.github/workflows/main.yml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name: Liman Render Engine Build
33
on:
44
push:
5-
braches: [master]
5+
branches: [master]
66

77
jobs:
88
build:
@@ -12,14 +12,25 @@ jobs:
1212
- name: Getting Go Binaries
1313
uses: actions/setup-go@v2
1414
with:
15-
go-version: '1.19'
15+
go-version: '1.20'
16+
1617
- name: Build Application
1718
run: |
1819
go get -u && go mod tidy
1920
go build -o liman_render
21+
22+
- name: Run UPX
23+
uses: crazy-max/ghaction-upx@v3
24+
with:
25+
version: latest
26+
files: |
27+
./liman_render
28+
args: -fq
29+
2030
- name: Create Zip
2131
run: |
2232
zip -r /tmp/liman_render-${{ github.run_number }}.zip liman_render
33+
2334
- name: Release
2435
id: create_release
2536
uses: softprops/action-gh-release@v1
@@ -28,4 +39,4 @@ jobs:
2839
with:
2940
files: /tmp/liman_render-${{ github.run_number }}.zip
3041
name: "Release ${{ github.run_number }}"
31-
tag_name: "release.${{ github.run_number }}"
42+
tag_name: "release.${{ github.run_number }}"

0 commit comments

Comments
 (0)