Skip to content

Commit

Permalink
feature: Compression on go build
Browse files Browse the repository at this point in the history
  • Loading branch information
dogukanoksuz committed Feb 27, 2024
1 parent ba032d3 commit 2030b1d
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name: Liman Render Engine Build
on:
push:
braches: [master]
branches: [master]

jobs:
build:
Expand All @@ -12,14 +12,25 @@ jobs:
- name: Getting Go Binaries
uses: actions/setup-go@v2
with:
go-version: '1.19'
go-version: '1.20'

- name: Build Application
run: |
go get -u && go mod tidy
go build -o liman_render
- name: Run UPX
uses: crazy-max/ghaction-upx@v3
with:
version: latest
files: |
./liman_render
args: -fq

- name: Create Zip
run: |
zip -r /tmp/liman_render-${{ github.run_number }}.zip liman_render
- name: Release
id: create_release
uses: softprops/action-gh-release@v1
Expand All @@ -28,4 +39,4 @@ jobs:
with:
files: /tmp/liman_render-${{ github.run_number }}.zip
name: "Release ${{ github.run_number }}"
tag_name: "release.${{ github.run_number }}"
tag_name: "release.${{ github.run_number }}"

0 comments on commit 2030b1d

Please sign in to comment.