Merge pull request 'develop' (#13) from develop into master
Some checks failed
build and test / artifact builds on linux and windows (push) Failing after 3m54s
Some checks failed
build and test / artifact builds on linux and windows (push) Failing after 3m54s
Reviewed-on: #13
This commit is contained in:
@@ -12,10 +12,12 @@ jobs:
|
||||
RUNNER_TOOL_CACHE: /toolcache
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: checkout
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- uses: actions/setup-go@v5
|
||||
- name: setup go
|
||||
uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version-file: 'go.mod'
|
||||
- name: setup-dependencies
|
||||
@@ -37,7 +39,7 @@ jobs:
|
||||
GOFLAGS="-ldflags=-s -ldflags=-w"
|
||||
CGO_ENABLED=1
|
||||
CC=gcc
|
||||
fyne package --appVersion=${VERSION} --appBuild=${BUILD} --exe bin/swiped-mod-switcher-$VERSION-linux-amd64 main.go
|
||||
fyne package --appVersion=${VERSION#v} --appBuild=${BUILD} --exe bin/swiped-mod-switcher-$VERSION-linux-amd64 main.go
|
||||
|
||||
- name: build windows
|
||||
run: |
|
||||
@@ -48,7 +50,7 @@ jobs:
|
||||
GOFLAGS="-ldflags=-H=windowsgui -ldflags=-s -ldflags=-w"
|
||||
CGO_ENABLED=1
|
||||
CC=x86_64-w64-mingw32-gcc
|
||||
fyne package --appVersion=${VERSION} --appBuild=${BUILD} --exe bin/swiped-mod-switcher-$VERSION-windows-amd64.exe main.go
|
||||
fyne package --appVersion=${VERSION#v} --appBuild=${BUILD} --exe bin/swiped-mod-switcher-$VERSION-windows-amd64.exe main.go
|
||||
|
||||
- uses: actions/upload-artifact@v3
|
||||
with:
|
||||
|
||||
@@ -12,10 +12,12 @@ jobs:
|
||||
RUNNER_TOOL_CACHE: /toolcache
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: checkout
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- uses: actions/setup-go@v5
|
||||
- name: setup go
|
||||
uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version-file: 'go.mod'
|
||||
- name: setup dependencies
|
||||
@@ -37,7 +39,7 @@ jobs:
|
||||
GOFLAGS="-ldflags=-s -ldflags=-w"
|
||||
CGO_ENABLED=1
|
||||
CC=gcc
|
||||
fyne package --appVersion=${VERSION} --appBuild=${BUILD} --exe bin/swiped-mod-switcher-${VERSION}.${BUILD}-linux-amd64 main.go
|
||||
fyne package --appVersion=${VERSION#v} --appBuild=${BUILD} --exe bin/swiped-mod-switcher-${VERSION}.${BUILD}-linux-amd64 main.go
|
||||
- name: run tests
|
||||
run: go test -v ./...
|
||||
- name: Check Vet
|
||||
|
||||
@@ -8,10 +8,12 @@ jobs:
|
||||
release:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: checkout
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- uses: actions/setup-go@v5
|
||||
- name: setup go
|
||||
uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version-file: 'go.mod'
|
||||
- name: setup-dependencies
|
||||
@@ -24,7 +26,7 @@ jobs:
|
||||
go get fyne.io/fyne/v2@latest
|
||||
go install fyne.io/fyne/v2/cmd/fyne@latest
|
||||
|
||||
- name: build-linux
|
||||
- name: build linux
|
||||
run: |
|
||||
VERSION=${{github.ref_name}}
|
||||
BUILD=${{github.run_number}}
|
||||
@@ -33,9 +35,9 @@ jobs:
|
||||
GOFLAGS="-ldflags=-s -ldflags=-w"
|
||||
CGO_ENABLED=1
|
||||
CC=gcc
|
||||
fyne package --appVersion=${VERSION} --appBuild=${BUILD} --exe bin/sw1ped-mod-switcher-${VERSION#v}.${BUILD}-linux-amd64 main.go
|
||||
fyne package --appVersion=${VERSION#v} --appBuild=${BUILD} --exe bin/sw1ped-mod-switcher-${VERSION}.${BUILD}-linux-amd64 main.go
|
||||
|
||||
- name: build-windows
|
||||
- name: build windows
|
||||
run: |
|
||||
VERSION=${{github.ref_name}}
|
||||
BUILD=${{github.run_number}}
|
||||
@@ -44,9 +46,9 @@ jobs:
|
||||
GOFLAGS="-ldflags=-H=windowsgui -ldflags=-s -ldflags=-w"
|
||||
CGO_ENABLED=1
|
||||
CC=x86_64-w64-mingw32-gcc
|
||||
fyne package --appVersion=${VERSION} --appBuild=${BUILD} --exe bin/sw1ped-mod-switcher-${VERSION#v}.${BUILD}-windows-amd64.exe main.go
|
||||
fyne package --appVersion=${VERSION#v} --appBuild=${BUILD} --exe bin/sw1ped-mod-switcher-${VERSION}.${BUILD}-windows-amd64.exe main.go
|
||||
|
||||
- name: add-release-binaries
|
||||
- name: add release binaries
|
||||
uses: https://gitea.com/actions/release-action@main
|
||||
with:
|
||||
files: |-
|
||||
|
||||
Reference in New Issue
Block a user