diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index c496cc52..e4482d03 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -2,7 +2,7 @@ name: Liman Render Engine Build on: push: - braches: [master] + branches: [master] jobs: build: @@ -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 @@ -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 }}" \ No newline at end of file + tag_name: "release.${{ github.run_number }}"