Skip to content

Commit e42a69a

Browse files
committed
Fetch bundled gem from stdgems.org for Windows CI
1 parent a23bbaf commit e42a69a

File tree

1 file changed

+6
-35
lines changed

1 file changed

+6
-35
lines changed

.github/workflows/windows.yml

Lines changed: 6 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -27,41 +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] }
32-
bundled_gems = %w[
33-
abbrev
34-
base64
35-
bigdecimal
36-
csv
37-
debug
38-
drb
39-
getoptlong
40-
matrix
41-
minitest
42-
mutex_m
43-
net-ftp
44-
net-imap
45-
net-pop
46-
net-smtp
47-
net-telnet
48-
nkf
49-
observer
50-
prime
51-
power_assert
52-
racc
53-
rake
54-
rbs
55-
repl_type_completor
56-
resolv-replace
57-
rexml
58-
rinda
59-
rss
60-
test-unit
61-
syslog
62-
typeprof
63-
xmlrpc
64-
]
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']}
6536
system "gem uninstall #{bundled_gems.join(" ")}", exception: true
6637
'
6738
- name: bundle install

0 commit comments

Comments
 (0)