summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJay Kwak <82421531+jkwak-work@users.noreply.github.com>2024-10-03 10:33:04 -0700
committerGitHub <noreply@github.com>2024-10-03 10:33:04 -0700
commit74bdd03955f2074b7feae8341f3f07398e649403 (patch)
tree78190e56dec02c932e81ac59844b0d77318c665f
parenta11a776642ebcb69924ff79e3c5aebdf9f9e08ff (diff)
Add path to bash to GITHUB_PATH (#5217)
* Add path to bash to GITHUB_PATH This is a workaround for a problem that keeps reoccurring on one of our self-hosted machines. Ideally, we should assume that bash shell is available on the runner system, and we should rely on the system-wise setting of PATH to find bash. This commit is a workaround for a case where bash cannot be found from the runner machine, which shouldn't be a case in a normal situation. It is also not safe to assume that the location of where bash is at a fixed location, because it can vary by how the system is setup. Once we root cause the issue on the SlangWin4-2, we may remove this workaround later.
-rw-r--r--.github/actions/common-setup/action.yml7
1 files changed, 7 insertions, 0 deletions
diff --git a/.github/actions/common-setup/action.yml b/.github/actions/common-setup/action.yml
index 6abd67236..2f16b77d3 100644
--- a/.github/actions/common-setup/action.yml
+++ b/.github/actions/common-setup/action.yml
@@ -16,6 +16,13 @@ inputs:
runs:
using: composite
steps:
+ - name: Add bash to PATH
+ shell: pwsh
+ if: ${{inputs.os == 'windows'}}
+ run: |
+ Add-Content -Path $env:GITHUB_PATH -Value "C:\\Program Files\\Git\\bin"
+ Add-Content -Path $env:GITHUB_PATH -Value "C:\\Program Files\\Git\\usr\\bin"
+
- name: Set up MSVC dev tools on Windows
uses: ilammy/msvc-dev-cmd@v1
with: