File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -21,16 +21,15 @@ RUN Invoke-WebRequest -Uri "https://github.com/actions/runner/releases/download/
21
21
[System.IO.Compression.ZipFile]::ExtractToDirectory('actions-runner.zip' , $PWD); `
22
22
Remove-Item -Force actions-runner.zip
23
23
24
- # ###############################################################################
25
- # Install Chocolatey + common tools
26
- # ###############################################################################
24
+ # Install Chocolatey and tools (without refreshenv)
27
25
RUN Set-ExecutionPolicy Bypass -Scope Process -Force; `
28
26
[Net.ServicePointManager]::SecurityProtocol = [Net.ServicePointManager]::SecurityProtocol -bor 3072; `
29
27
Invoke-Expression ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1' )); `
30
28
choco feature enable -n allowGlobalConfirmation; `
31
- choco install -y git.install gh powershell-core azure-cli docker-cli docker-compose cmake python --installargs '"ADD_CMAKE_TO_PATH=System"' ; `
32
- refreshenv
29
+ choco install -y git.install gh powershell-core azure-cli docker-cli docker-compose cmake python --installargs '"ADD_CMAKE_TO_PATH=System"'
33
30
31
+ # Manually append Git and Python to PATH if needed
32
+ RUN setx /M PATH "$($Env:PATH);C:\P rogram Files\G it\b in;C:\P ython313"
34
33
# Add Git Bash to PATH
35
34
RUN setx /M PATH "$($Env:PATH);C:\P rogram Files\G it\b in"
36
35
You can’t perform that action at this time.
0 commit comments