Compare commits
2 Commits
6ba0f1bdea
...
738d0727ed
| Author | SHA1 | Date | |
|---|---|---|---|
| 738d0727ed | |||
| d10d83dd05 |
@@ -12,10 +12,12 @@ jobs:
|
|||||||
RUNNER_TOOL_CACHE: /toolcache
|
RUNNER_TOOL_CACHE: /toolcache
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- name: checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
- uses: actions/setup-go@v5
|
- name: setup go
|
||||||
|
uses: actions/setup-go@v5
|
||||||
with:
|
with:
|
||||||
go-version-file: 'go.mod'
|
go-version-file: 'go.mod'
|
||||||
- name: setup-dependencies
|
- name: setup-dependencies
|
||||||
@@ -37,7 +39,7 @@ jobs:
|
|||||||
GOFLAGS="-ldflags=-s -ldflags=-w"
|
GOFLAGS="-ldflags=-s -ldflags=-w"
|
||||||
CGO_ENABLED=1
|
CGO_ENABLED=1
|
||||||
CC=gcc
|
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
|
- name: build windows
|
||||||
run: |
|
run: |
|
||||||
@@ -48,7 +50,7 @@ jobs:
|
|||||||
GOFLAGS="-ldflags=-H=windowsgui -ldflags=-s -ldflags=-w"
|
GOFLAGS="-ldflags=-H=windowsgui -ldflags=-s -ldflags=-w"
|
||||||
CGO_ENABLED=1
|
CGO_ENABLED=1
|
||||||
CC=x86_64-w64-mingw32-gcc
|
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
|
- uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
|
|||||||
@@ -12,10 +12,12 @@ jobs:
|
|||||||
RUNNER_TOOL_CACHE: /toolcache
|
RUNNER_TOOL_CACHE: /toolcache
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- name: checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
- uses: actions/setup-go@v5
|
- name: setup go
|
||||||
|
uses: actions/setup-go@v5
|
||||||
with:
|
with:
|
||||||
go-version-file: 'go.mod'
|
go-version-file: 'go.mod'
|
||||||
- name: setup dependencies
|
- name: setup dependencies
|
||||||
@@ -37,7 +39,7 @@ jobs:
|
|||||||
GOFLAGS="-ldflags=-s -ldflags=-w"
|
GOFLAGS="-ldflags=-s -ldflags=-w"
|
||||||
CGO_ENABLED=1
|
CGO_ENABLED=1
|
||||||
CC=gcc
|
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
|
- name: run tests
|
||||||
run: go test -v ./...
|
run: go test -v ./...
|
||||||
- name: Check Vet
|
- name: Check Vet
|
||||||
|
|||||||
@@ -8,10 +8,12 @@ jobs:
|
|||||||
release:
|
release:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- name: checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
- uses: actions/setup-go@v5
|
- name: setup go
|
||||||
|
uses: actions/setup-go@v5
|
||||||
with:
|
with:
|
||||||
go-version-file: 'go.mod'
|
go-version-file: 'go.mod'
|
||||||
- name: setup-dependencies
|
- name: setup-dependencies
|
||||||
@@ -24,7 +26,7 @@ jobs:
|
|||||||
go get fyne.io/fyne/v2@latest
|
go get fyne.io/fyne/v2@latest
|
||||||
go install fyne.io/fyne/v2/cmd/fyne@latest
|
go install fyne.io/fyne/v2/cmd/fyne@latest
|
||||||
|
|
||||||
- name: build-linux
|
- name: build linux
|
||||||
run: |
|
run: |
|
||||||
VERSION=${{github.ref_name}}
|
VERSION=${{github.ref_name}}
|
||||||
BUILD=${{github.run_number}}
|
BUILD=${{github.run_number}}
|
||||||
@@ -33,9 +35,9 @@ jobs:
|
|||||||
GOFLAGS="-ldflags=-s -ldflags=-w"
|
GOFLAGS="-ldflags=-s -ldflags=-w"
|
||||||
CGO_ENABLED=1
|
CGO_ENABLED=1
|
||||||
CC=gcc
|
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: |
|
run: |
|
||||||
VERSION=${{github.ref_name}}
|
VERSION=${{github.ref_name}}
|
||||||
BUILD=${{github.run_number}}
|
BUILD=${{github.run_number}}
|
||||||
@@ -44,9 +46,9 @@ jobs:
|
|||||||
GOFLAGS="-ldflags=-H=windowsgui -ldflags=-s -ldflags=-w"
|
GOFLAGS="-ldflags=-H=windowsgui -ldflags=-s -ldflags=-w"
|
||||||
CGO_ENABLED=1
|
CGO_ENABLED=1
|
||||||
CC=x86_64-w64-mingw32-gcc
|
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
|
uses: https://gitea.com/actions/release-action@main
|
||||||
with:
|
with:
|
||||||
files: |-
|
files: |-
|
||||||
|
|||||||
Reference in New Issue
Block a user