We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 88aa628 commit 7ca28f0Copy full SHA for 7ca28f0
.github/workflows/windows.yml
@@ -20,6 +20,17 @@ jobs:
20
uses: ruby/setup-ruby@v1
21
with:
22
ruby-version: ${{ matrix.ruby }}
23
+
24
+ # ucrt and mswin have the dev version Ruby.
25
+ # It introduce checksum mismatches for bundled gems. So remove them before `bundle install`
26
+ - name: Purge gem caches
27
+ run: |
28
+ ruby -e '
29
+ 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
+ system "gem uninstall #{bundled_gems.join(" ")}", exception: true
33
+ '
34
- name: bundle install
35
run: |
36
bundle config set without profilers libs
0 commit comments