From 6551fed4f92144df65338f4f96abb898f27b79e6 Mon Sep 17 00:00:00 2001 From: Kim Burgestrand Date: Sun, 16 Jun 2024 13:44:11 +0200 Subject: [PATCH] Work around JRuby failing on bundle install Still haven't figured out the _why_, but bundle install fails on JRuby head and 9.4. Making sure to install psych with `gem install` first makes the problem go away. I'll debug this out of band, but for now this makes all our CI builds succeed again. --- .github/workflows/main.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index f35bc3ec..5ed27808 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -48,7 +48,12 @@ jobs: with: rubygems: latest ruby-version: ${{ matrix.ruby-version }} - bundler-cache: true + bundler-cache: ${{ !startsWith(matrix.ruby-version, 'jruby') }} + - name: Bundler install (JRuby workaround) + if: ${{ startsWith(matrix.ruby-version, 'jruby') }} + run: | + gem install psych + bundle install - name: Run tests run: bundle exec rspec