Closed JuanitoFatas closed 4 years ago
You are manually caching bundle install
, that's tricky to do correctly.
Could you try with https://github.com/ruby/setup-ruby#caching-bundle-install-automatically and remove anything related to caching or Bundler in the workflow?
You can also try changing the key for actions/cache@v1
(by appending some random string), to invalidate the cache, and see if this is caused by cached data.
BTW, there is warning, probably harmless but seems worth fixing: https://github.com/ruby/www.ruby-lang.org/runs/1288399116#step:4:1
The $CUSTOM_RUBY_VERSION
logic might also cause issues. Why not simply using ruby RUBY_VERSION
in the Gemfile?
I don't recall anymore if in Bundler 2 ruby version
in the Gemfile
has any effect. Maybe it's not necessary anymore?
@eregon Thanks Benoit! I have fixed the build based on your recommendation. You are amazing!
Sorry I know this is not the right project to open this issue, sorry in advance.
Wonder if you got any pointers on resolving this
LoadError
for ruby/www.ruby-lang.org from this PR - The PR itself is irrelevant.The action workflow file.
Full Error
``` Checking markdown files... ok rake aborted! LoadError: dlopen(/Users/runner/work/www.ruby-lang.org/www.ruby-lang.org/vendor/bundle/ruby/2.7.0/gems/ffi-1.11.1/lib/ffi_c.bundle, 9): Library not loaded: /Users/runner/.rubies/ruby-2.7.1/lib/libruby.2.7.dylib Referenced from: /Users/runner/work/www.ruby-lang.org/www.ruby-lang.org/vendor/bundle/ruby/2.7.0/gems/ffi-1.11.1/lib/ffi_c.bundle Reason: image not found - /Users/runner/work/www.ruby-lang.org/www.ruby-lang.org/vendor/bundle/ruby/2.7.0/gems/ffi-1.11.1/lib/ffi_c.bundle /Users/runner/work/www.ruby-lang.org/www.ruby-lang.org/vendor/bundle/ruby/2.7.0/gems/ffi-1.11.1/lib/ffi.rb:6:in `require' /Users/runner/work/www.ruby-lang.org/www.ruby-lang.org/vendor/bundle/ruby/2.7.0/gems/ffi-1.11.1/lib/ffi.rb:6:in `rescue inIt started breaking since October 6.
Cheers.