From 74bdd03955f2074b7feae8341f3f07398e649403 Mon Sep 17 00:00:00 2001 From: Jay Kwak <82421531+jkwak-work@users.noreply.github.com> Date: Thu, 3 Oct 2024 10:33:04 -0700 Subject: 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. --- .github/actions/common-setup/action.yml | 7 +++++++ 1 file changed, 7 insertions(+) (limited to '.github') 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: -- cgit v1.2.3