Windows gh workflow fun

This commit is contained in:
2025-08-03 12:39:37 +03:00
parent 7ed248cce9
commit 5aefc03a13

View File

@@ -57,12 +57,16 @@ jobs:
with:
go-version: stable
- name: Install `zip` on Windows
- name: Install zip via Chocolatey (PowerShell)
if: runner.os == 'Windows'
shell: powershell
shell: pwsh
run: |
choco install zip -y
refreshenv # ensures zip.exe is in PATH for subsequent Bash steps
# Install the CLI
choco install zip.commandline --no-progress -y
# Load the helper module and refresh the environment
$env:ChocolateyInstall = Convert-Path "$((Get-Command choco).Source)\..\.."
Import-Module "$env:ChocolateyInstall\helpers\chocolateyProfile.psm1"
refreshenv # activates zip in current session
- name: Build binary
shell: bash