ci(workflows): replace Wails build with Go CLI build

The build action doesn't yet support Wails v3. Comment out the GUI
build step and use host-uk/build/actions/setup/go for Go toolchain
setup with a plain `go build` for the CLI binary.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Snider 2026-02-04 12:45:32 +00:00
parent 85aad44a0d
commit a89ff8ca91
3 changed files with 98 additions and 30 deletions

View file

@ -20,25 +20,51 @@ jobs:
matrix:
include:
- os: ubuntu-latest
platform: linux/amd64
goos: linux
goarch: amd64
- os: ubuntu-latest
platform: linux/arm64
goos: linux
goarch: arm64
- os: macos-latest
platform: darwin/universal
goos: darwin
goarch: arm64
- os: windows-latest
platform: windows/amd64
goos: windows
goarch: amd64
runs-on: ${{ matrix.os }}
env:
GOOS: ${{ matrix.goos }}
GOARCH: ${{ matrix.goarch }}
steps:
- uses: actions/checkout@v6
- name: Build
uses: host-uk/build@v4.0.0
# GUI build disabled until build action supports Wails v3
# - name: Wails Build Action
# uses: host-uk/build@v4.0.0
# with:
# build-name: core
# build-platform: ${{ matrix.goos }}/${{ matrix.goarch }}
# build: true
# package: true
# sign: false
- name: Setup Go
uses: host-uk/build/actions/setup/go@v4.0.0
with:
build-name: core
build-platform: ${{ matrix.platform }}
build: true
package: true
sign: false
go-version: "1.25"
- name: Build CLI
shell: bash
run: |
EXT=""
if [ "$GOOS" = "windows" ]; then EXT=".exe"; fi
go build -o "./bin/core${EXT}" .
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: core-${{ matrix.goos }}-${{ matrix.goarch }}
path: ./bin/core*
release:
needs: build

View file

@ -26,21 +26,37 @@ jobs:
matrix:
include:
- os: ubuntu-latest
platform: linux/amd64
goos: linux
goarch: amd64
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
ref: ${{ github.event.pull_request.head.sha || github.sha }}
- name: Build
uses: host-uk/build@v4.0.0
# GUI build disabled until build action supports Wails v3
# - name: Wails Build Action
# uses: host-uk/build@v4.0.0
# with:
# build-name: core
# build-platform: ${{ matrix.goos }}/${{ matrix.goarch }}
# build: true
# package: true
# sign: false
- name: Setup Go
uses: host-uk/build/actions/setup/go@v4.0.0
with:
build-name: core
build-platform: ${{ matrix.platform }}
build: true
package: true
sign: false
go-version: "1.25"
- name: Build CLI
run: go build -o ./bin/core .
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: core-${{ matrix.goos }}-${{ matrix.goarch }}
path: ./bin/core
draft-release:
needs: build

View file

@ -15,25 +15,51 @@ jobs:
matrix:
include:
- os: ubuntu-latest
platform: linux/amd64
goos: linux
goarch: amd64
- os: ubuntu-latest
platform: linux/arm64
goos: linux
goarch: arm64
- os: macos-latest
platform: darwin/universal
goos: darwin
goarch: arm64
- os: windows-latest
platform: windows/amd64
goos: windows
goarch: amd64
runs-on: ${{ matrix.os }}
env:
GOOS: ${{ matrix.goos }}
GOARCH: ${{ matrix.goarch }}
steps:
- uses: actions/checkout@v6
- name: Build
uses: host-uk/build@v4.0.0
# GUI build disabled until build action supports Wails v3
# - name: Wails Build Action
# uses: host-uk/build@v4.0.0
# with:
# build-name: core
# build-platform: ${{ matrix.goos }}/${{ matrix.goarch }}
# build: true
# package: true
# sign: false
- name: Setup Go
uses: host-uk/build/actions/setup/go@v4.0.0
with:
build-name: core
build-platform: ${{ matrix.platform }}
build: true
package: true
sign: false
go-version: "1.25"
- name: Build CLI
shell: bash
run: |
EXT=""
if [ "$GOOS" = "windows" ]; then EXT=".exe"; fi
go build -o "./bin/core${EXT}" .
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: core-${{ matrix.goos }}-${{ matrix.goarch }}
path: ./bin/core*
release:
needs: build