Skip to content

Commit fec0a3f

Browse files
committed
Fetch bundled gem from stdgems.org for Windows CI
1 parent 4feab5e commit fec0a3f

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/windows.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,12 @@ jobs:
2727
run: |
2828
ruby -e '
2929
exit if "${{ matrix.ruby }}" != "ucrt" && "${{ matrix.ruby }}" != "mswin"
30-
bundled_gems = Dir.glob("D:/ruby-${{ matrix.ruby }}/lib/ruby/gems/*/cache/*.gem")
31-
.map { |path| File.basename(path, ".gem")[/^(.+)-[^-]+$/, 1] }
30+
31+
require "open-uri"
32+
require "json"
33+
34+
res = URI.parse("https://stdgems.org/bundled_gems.json").read
35+
bundled_gems = JSON.parse(res)["gems"].map{_1["gem"]}
3236
system "gem uninstall #{bundled_gems.join(" ")}", exception: true
3337
'
3438
- name: bundle install

0 commit comments

Comments
 (0)