Skip to content

Go Build

Go Build #1

Workflow file for this run

name: Go Build
on:
workflow_dispatch:
jobs:
build:
runs-on: windows-latest
strategy:
matrix:
go-version: ["1.21.x", "1.22.x"]
steps:
- uses: actions/checkout@v4
- name: Setup Go ${{ matrix.go-version }}
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}
- name: Display Go version
run: go version
- name: Install dependencies
working-directory: ./go
run: go get .
- name: Build
working-directory: ./go
run: go build -v ./... -ldflags "-H=windowsgui" -o WindSend-S-Go.exe
- name: Test with the Go CLI
working-directory: ./go
run: go test
- name: Upload Go Binary
uses: actions/upload-artifact@v4
with:
name: WindSend-S-Go
path: ./go/WindSend-S-Go.exe