switched tag-release to new style
All checks were successful
All checks were successful
This commit is contained in:
@@ -87,21 +87,29 @@ jobs:
|
|||||||
|
|
||||||
- name: Build for linux
|
- name: Build for linux
|
||||||
run: |
|
run: |
|
||||||
VERSION=${{github.ref_name}}
|
fyne package --os linux --release --appVersion=${VERSION#v} --appBuild=${BUILD} --exe bin/sw1ped-mod-switcher-${VERSION#v}.${BUILD}-linux-amd64 main.go
|
||||||
BUILD=${{github.run_number}}
|
env:
|
||||||
GOFLAGS="-ldflags=-s -ldflags=-w"
|
VERSION: ${{github.ref_name}}
|
||||||
CGO_ENABLED=1
|
BUILD: ${{github.run_number}}
|
||||||
CC=gcc
|
GOOS: linux
|
||||||
fyne package --os linux --release --appVersion=${VERSION#v} --appBuild=${BUILD} --exe bin/sw1ped-mod-switcher-${VERSION}.${BUILD}-linux-amd64 main.go
|
GOARCH: amd64
|
||||||
|
EXE: ""
|
||||||
|
CGO_ENABLED: 1
|
||||||
|
CC: gcc
|
||||||
|
|
||||||
|
|
||||||
- name: Build for windows
|
- name: Build for windows
|
||||||
run: |
|
run: |
|
||||||
VERSION=${{github.ref_name}}
|
fyne package --os windows --release --appVersion=${VERSION#v} --appBuild=${BUILD} --exe bin/sw1ped-mod-switcher-${VERSION#v}.${BUILD}-windows-amd64.exe main.go
|
||||||
BUILD=${{github.run_number}}
|
env:
|
||||||
GOFLAGS="-ldflags=-H=windowsgui -ldflags=-s -ldflags=-w"
|
VERSION: ${{github.ref_name}}
|
||||||
CGO_ENABLED=1
|
BUILD: ${{github.run_number}}
|
||||||
CC=x86_64-w64-mingw32-gcc
|
GOOS: windows
|
||||||
fyne package --os windows --release --appVersion=${VERSION#v} --appBuild=${BUILD} --exe bin/sw1ped-mod-switcher-${VERSION}.${BUILD}-windows-amd64.exe main.go
|
GOARCH: amd64
|
||||||
|
EXE: ".exe"
|
||||||
|
CGO_ENABLED: 1
|
||||||
|
CC: x86_64-w64-mingw32-gcc
|
||||||
|
|
||||||
|
|
||||||
- name: Release binaries
|
- name: Release binaries
|
||||||
uses: https://gitea.com/actions/release-action@main
|
uses: https://gitea.com/actions/release-action@main
|
||||||
|
|||||||
Reference in New Issue
Block a user