Compare commits

...

2 Commits

Author SHA1 Message Date
7d37c75d64 switched tag-release to new style
All checks were successful
CI / Lint (push) Successful in 47s
CI / Test (push) Successful in 3m22s
CI / Build (push) Successful in 3m58s
CI / Lint (pull_request) Successful in 1m8s
CI / Test (pull_request) Successful in 5m48s
CI / Build (pull_request) Successful in 6m31s
2024-03-10 17:08:56 -05:00
31f3df710a fixed artifact version issue 2024-03-10 17:06:37 -05:00
2 changed files with 22 additions and 12 deletions

View File

@@ -93,6 +93,7 @@ jobs:
run: | run: |
fyne package --appBuild=${BUILD} --exe bin/swiped-mod-switcher-${VERSION}.${BUILD}-${GOOS}-${GOARCH}${EXE} main.go fyne package --appBuild=${BUILD} --exe bin/swiped-mod-switcher-${VERSION}.${BUILD}-${GOOS}-${GOARCH}${EXE} main.go
env: env:
VERSION: ${{github.ref_name}}
BUILD: ${{github.run_number}} BUILD: ${{github.run_number}}
GOOS: linux GOOS: linux
GOARCH: amd64 GOARCH: amd64
@@ -104,6 +105,7 @@ jobs:
run: | run: |
fyne package --appBuild=${BUILD} --exe bin/swiped-mod-switcher-${VERSION}.${BUILD}-${GOOS}-${GOARCH}${EXE} main.go fyne package --appBuild=${BUILD} --exe bin/swiped-mod-switcher-${VERSION}.${BUILD}-${GOOS}-${GOARCH}${EXE} main.go
env: env:
VERSION: ${{github.ref_name}}
BUILD: ${{github.run_number}} BUILD: ${{github.run_number}}
GOOS: windows GOOS: windows
GOARCH: amd64 GOARCH: amd64

View File

@@ -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