Skip to content

Commit 6b3f471

Browse files
ManasJayanthjordwalke
authored andcommitted
Fixes Windows CI: prepend '/c/Program Files/Git/bin'
Cherry-Picked from reasonml/reason@d3822b7: Fixes Windows CI: prepend '/c/Program Files/Git/bin' (#2611) * Fixes Windows CI: prepend '/c/Program Files/Git/bin' Bash@3 started failing after a recent change related to WSL actions/runner-images#1081 actions/runner-images#1276 * Fix slashes * Pick bash from env
1 parent 903f528 commit 6b3f471

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.ci/build-platform.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ jobs:
1616
# Needed so that the mingw tar doesn't shadow the system tar. See
1717
# pipelines.yaml. We need windows bsdtar from system32, not the mingw
1818
# one. Note powershell doesn't need escaping of backslashes.
19-
- powershell: Write-Host "##vso[task.setvariable variable=PATH;]C:\Windows\system32;${env:PATH}"
19+
- powershell: Write-Host "##vso[task.setvariable variable=PATH;]C:\Program Files\Git\bin;C:\Windows\system32;${env:PATH}"
2020
continueOnError: true
2121
condition: eq(variables['AGENT.OS'], 'Windows_NT')
22-
displayName: "Make sure windows/system32 is at front of path if windows"
22+
displayName: "Make sure C:/Program Files/Git/bin and windows/system32 is at front of path if windows"
2323
- powershell: $Env:Path
2424
continueOnError: true
2525
condition: and(eq(variables['AGENT.OS'], 'Windows_NT'), and(eq(variables['Build.Reason'], 'PullRequest'), and(succeeded(), ne(variables['Build.SourceBranch'], variables['System.PullRequest.TargetBranch']))))

0 commit comments

Comments
 (0)