diff options
author | Takashi Kokubun <takashikkbn@gmail.com> | 2024-01-22 09:49:52 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-22 09:49:52 -0800 |
commit | 4fc0a901ac683eaebc39db1948f8f0db6d8bd19f (patch) | |
tree | c86b059449a1569fde866fb642928c96422c1152 /.github/workflows/windows.yml | |
parent | 703eee7745935c54e7b80b22b9b695e99f53fc5e (diff) |
Set a cached Ruby path using setup-ruby (#9645)
Diffstat (limited to '.github/workflows/windows.yml')
-rw-r--r-- | .github/workflows/windows.yml | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 098d709bb7..1f251b06cd 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -96,6 +96,12 @@ jobs: ${{ steps.find-tools.outputs.needs }} if: ${{ steps.find-tools.outputs.needs != '' }} + - uses: ruby/setup-ruby@5daca165445f0ae10478593083f72ca2625e241d # v1.169.0 + with: + ruby-version: '2.7' + bundler: none + windows-toolchain: none + - uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # v4.0.0 with: path: C:\vcpkg\downloads @@ -147,7 +153,6 @@ jobs: set TEMP=%USERPROFILE%\AppData\Local\Temp set MAKEFLAGS=l set /a TEST_JOBS=(15 * %NUMBER_OF_PROCESSORS% / 10) > nul - set PATH=C:\hostedtoolcache\windows\Ruby\2.7.8\x64\bin;%PATH% set | C:\msys64\usr\bin\sort > new.env C:\msys64\usr\bin\comm -13 old.env new.env >> %GITHUB_ENV% del *.env |