Skip to content

Commit a29f16a

Browse files
yarikopticclaude
andcommitted
BF: Add NSIS path to GITHUB_PATH for bash steps
When using bash shell in GitHub Actions on Windows, chocolatey's PATH updates aren't reflected in the current bash session. Use PowerShell for the install step and explicitly add NSIS path to GITHUB_PATH so subsequent bash steps can find makensis. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 024f3d3 commit a29f16a

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

.github/workflows/build-windows.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,10 @@ jobs:
135135
run: stack install --no-haddock --local-bin-path .
136136

137137
- name: Install NSIS
138-
run: choco install nsis -y
138+
shell: pwsh
139+
run: |
140+
choco install nsis -y
141+
echo "C:\Program Files (x86)\NSIS" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
139142
140143
- name: Build the installer
141144
run: |

.github/workflows/template/build-{{ostype}}.yaml.j2

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,12 @@ jobs:
257257
- name: Build git-annex
258258
run: stack install --no-haddock --local-bin-path .
259259

260+
- name: Install NSIS
261+
shell: pwsh
262+
run: |
263+
choco install nsis -y
264+
echo "C:\Program Files (x86)\NSIS" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
265+
260266
- name: Build the installer
261267
run: |
262268
stack ghc --no-haddock --package nsis Build/NullSoftInstaller.hs

0 commit comments

Comments
 (0)