Skip to content

Go Build and Release for Windows #9

Go Build and Release for Windows

Go Build and Release for Windows #9

Workflow file for this run

# This workflow will build a golang project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go
name: Go Build and Release for Windows
on:
release:
types: [created]
jobs:
build:
name: Build
runs-on: windows-latest
strategy:
matrix:
arch: [x86, x86_64]
include:
- arch: x86
goarch: 386
- arch: x86_64
goarch: amd64
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.23.1'
- name: Build
env:
GOOS: windows
GOARCH: ${{ matrix.goarch }}
run: |
cd cmd/hidell
go build -ldflags="-H windowsgui" -o HIDELL_${{ matrix.arch }}.exe
- name: Upload to Release Action
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
token: ${{ secrets.GITHUB_TOKEN }}
files: HIDELL_${{ matrix.arch }}.exe