Skip to content

Commit 849bc20

Browse files
committed
ci: fix windows builds by importing the chocolatey profile
1 parent 330e639 commit 849bc20

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.gitlab-ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ default:
2222
# Replace this in windows runners that use powershell
2323
# with `mkdir -Force "$CI_PROJECT_DIR/tmp"`
2424
- mkdir -p "$CI_PROJECT_DIR/tmp"
25+
# so that refreshenv will resolve to the correct Powershell alias
26+
- Import-Module $env:ChocolateyInstall\helpers\chocolateyProfile.psm1
2527

2628
# Cached directories shared between jobs & pipelines per-branch per-runner
2729
cache:

0 commit comments

Comments
 (0)