From 5aefc03a135c5f42d61a67602c0fa25dc0751839 Mon Sep 17 00:00:00 2001 From: Kyren223 Date: Sun, 3 Aug 2025 12:39:37 +0300 Subject: Windows gh workflow fun --- .github/workflows/release.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to '.github/workflows') diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a001000..091a43e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 -- cgit v1.3.1