Merge pull request 'okay fyne' (#14) from develop into master
Some checks failed
build and test / artifact builds on linux and windows (push) Failing after 3m7s

Reviewed-on: #14
This commit is contained in:
s1d3sw1ped
2024-03-10 18:59:06 +00:00
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

View File

@@ -2,5 +2,5 @@
Icon = "icon.png"
Name = "Swiped Mod Switcher"
ID = "com.s1d3sw1ped.swipedmodswitcher"
Version = "untracked"
Version = "0.0.0"
Build = 1