okay fyne
Some checks failed
build and test / artifact builds on linux and windows (push) Has been cancelled
pull request validation / build and run tests (pull_request) Has been cancelled

This commit is contained in:
2024-03-10 13:57:50 -05:00
parent bd2f536c5d
commit cad13efe95
3 changed files with 4 additions and 8 deletions

View File

@@ -32,25 +32,23 @@ jobs:
- name: build linux
run: |
VERSION=${{github.ref_name}}
BUILD=${{github.run_number}}
GOOS=windows
GOARCH=amd64
GOFLAGS="-ldflags=-s -ldflags=-w"
CGO_ENABLED=1
CC=gcc
fyne package --appVersion=${VERSION#v} --appBuild=${BUILD} --exe bin/swiped-mod-switcher-$VERSION-linux-amd64 main.go
fyne package --appBuild=${BUILD} --exe bin/swiped-mod-switcher-$VERSION-linux-amd64 main.go
- name: build windows
run: |
VERSION=${{github.ref_name}}
BUILD=${{github.run_number}}
GOOS=windows
GOARCH=amd64
GOFLAGS="-ldflags=-H=windowsgui -ldflags=-s -ldflags=-w"
CGO_ENABLED=1
CC=x86_64-w64-mingw32-gcc
fyne package --appVersion=${VERSION#v} --appBuild=${BUILD} --exe bin/swiped-mod-switcher-$VERSION-windows-amd64.exe main.go
fyne package --appBuild=${BUILD} --exe bin/swiped-mod-switcher-$VERSION-windows-amd64.exe main.go
- uses: actions/upload-artifact@v3
with:

View File

@@ -32,14 +32,12 @@ jobs:
- name: build
run: |
VERSION=${{github.ref_name}}
BUILD=${{github.run_number}}
GOOS=linux
GOARCH=amd64
GOFLAGS="-ldflags=-s -ldflags=-w"
CGO_ENABLED=1
CC=gcc
fyne package --appVersion=${VERSION#v} --appBuild=${BUILD} --exe bin/swiped-mod-switcher-${VERSION}.${BUILD}-linux-amd64 main.go
fyne package --exe bin/swiped-mod-switcher-${VERSION}.${BUILD}-linux-amd64 main.go
- name: run tests
run: go test -v ./...
- name: Check Vet