Skip to content

Update go-win-amd64.yml #4

Update go-win-amd64.yml

Update go-win-amd64.yml #4

Workflow file for this run

name: Build Windows Go Binary
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build-windows:
runs-on: windows-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.22' # Specify the Go version you want to use
- name: Build Windows Binary
run: |
go env -w GOOS=windows
go env -w GOARCH=amd64
go build main.go
shell: pwsh
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: natshelmresolver-winx64
path: natshelmresolver.exe