Skip to content
This repository has been archived by the owner on Aug 24, 2024. It is now read-only.

Commit

Permalink
ci: add linux build
Browse files Browse the repository at this point in the history
  • Loading branch information
Nitamet committed Jul 31, 2023
1 parent c3600f1 commit a78880a
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 6 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/push-update.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ jobs:
cd ./artifact/windows-amd64
ls -R
mv geemo.exe ../../binaries/windows-amd64
cd ../../artifact/linux-amd64
mv geemo ../../binaries/linux-amd64
- name: Install go-selfupdate
run: go install github.com/sanbornm/go-selfupdate/cmd/go-selfupdate@latest
Expand Down
35 changes: 29 additions & 6 deletions .github/workflows/release-app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,36 +17,59 @@ jobs:
with:
go-version: "1.20"

- uses: dAppServer/wails-build-action@v2.2
- name: Build (Windows)
uses: dAppServer/wails-build-action@v2.2
with:
build-name: geemo.exe
build-platform: windows/amd64
package: false
nsis: false

- name: Upload Artifact in GOOS-GOARCH format
- name: Build (Linux)
uses: dAppServer/wails-build-action@v2.2
with:
build-name: geemo.exe
build-platform: windows/amd64
package: false
nsis: false

- name: Upload Windows Artifact in GOOS-GOARCH format
uses: actions/upload-artifact@v3
with:
name: windows-amd64
path: ./build/bin/geemo.exe

- name: Upload Linux Artifact in GOOS-GOARCH format
uses: actions/upload-artifact@v3
with:
name: linux-amd64
path: ./build/bin/geemo

release:
name: Release
needs: build
runs-on: ubuntu-20.04
steps:
- name: Download Artifact
- name: Download Windows Artifact
uses: actions/download-artifact@v2
with:
name: windows-amd64

- name: Download Linux Artifact
uses: actions/download-artifact@v2
with:
name: linux-amd64

- name: Zip
run: |
zip -r geemo-${{github.ref_name}}.zip geemo.exe
zip -r geemo-windows-${{github.ref_name}}.zip geemo.exe
zip -r geemo-linux-${{github.ref_name}}.zip geemo
- name: Release
uses: softprops/action-gh-release@v1
with:
files: geemo-${{github.ref_name}}.zip
draft: true
token: ${{ secrets.PRIVATE_REPO_TOKEN }}
token: ${{ secrets.PRIVATE_REPO_TOKEN }}
files: |
geemo-windows-${{github.ref_name}}.zip
geemo-linux-${{github.ref_name}}.zip

0 comments on commit a78880a

Please sign in to comment.