-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add github workflow to build application.
- Loading branch information
Showing
2 changed files
with
33 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
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/ | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: lanty | ||
path: ./build/* | ||
if-no-files-found: error | ||
retention-days: 1 | ||
overwrite: "true" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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) | ||
|