Skip to content

feature: Compression on go build #57

feature: Compression on go build

feature: Compression on go build #57

Workflow file for this run

# .github/workflows/main.yml
name: Liman Render Engine Build
on:
push:
branches: [master]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Getting Go Binaries
uses: actions/setup-go@v2
with:
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
env:
GITHUB_TOKEN: ${{ secrets.TOKEN }}
with:
files: /tmp/liman_render-${{ github.run_number }}.zip
name: "Release ${{ github.run_number }}"
tag_name: "release.${{ github.run_number }}"