Skip to content

Commit 081ae69

Browse files
committed
Fix setting the Path on Windows
1 parent 6625117 commit 081ae69

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/build.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,15 @@ jobs:
117117

118118
# Test
119119
- run: echo "$PWD/jruby-head/bin" >> $GITHUB_PATH
120+
if: "!startsWith(matrix.os, 'windows')"
121+
- run: echo "$($pwd.Path)\jruby-head\bin" | Out-File -FilePath $Env:GITHUB_PATH -Encoding utf8 -Append
122+
if: startsWith(matrix.os, 'windows')
123+
- run: which ruby
124+
if: "!startsWith(matrix.os, 'windows')"
125+
- run: where.exe ruby
126+
if: startsWith(matrix.os, 'windows')
127+
- run: echo $Env:Path
128+
120129
- run: ruby --version
121130
- run: ruby -e 'raise unless RUBY_ENGINE == %{jruby}'
122131
- run: gem --version

0 commit comments

Comments
 (0)