Skip to content

Commit

Permalink
Add github workflow to build application.
Browse files Browse the repository at this point in the history
  • Loading branch information
seternate committed Mar 7, 2024
1 parent 94c39f0 commit ea3ccaa
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 1 deletion.
34 changes: 34 additions & 0 deletions .github/workflows/go.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Go

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
lfs: "true"
- name: Setup Golang
uses: actions/setup-go@v4
with:
go-version: '1.21'
- name: Install build dependency packages
run: sudo apt-get update && sudo apt-get install -y libgl1-mesa-dev xorg-dev
- name: Go Generate
run: go generate ./...
- name: Build
run: go build -o ./build/lanty.exe -v ./cmd/
- name: Get settings file
run: cp ./settings.yaml ./build
- uses: actions/upload-artifact@v4
with:
name: lanty
path: ./build
if-no-files-found: error
retention-days: 1
overwrite: "true"
2 changes: 1 addition & 1 deletion cmd/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
)

//go:generate go run github.com/tc-hib/[email protected] make --in ./winres.json --arch amd64
//go:generate fyne bundle -o ./bundled.go ./icon.png
//go:generate go run fyne.io/fyne/v2/cmd/[email protected] bundle -o ./bundled.go ./icon.png

func main() {
signalCtx, cancelSignalCtx := signal.NotifyContext(context.Background(), os.Interrupt, syscall.SIGTERM)
Expand Down

0 comments on commit ea3ccaa

Please sign in to comment.