Skip to content

Commit

Permalink
Use bundler 2.1 on CI
Browse files Browse the repository at this point in the history
This fixes libv8 installation under GitHub action containers.

Bundler 2.2 build from source instead of using the prepackaged binary.

See: rubyjs/libv8#310
  • Loading branch information
gbp committed Mar 31, 2021
1 parent a9f9b79 commit eaf4290
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,20 +56,8 @@ jobs:
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}

- name: Cache RubyGems
uses: actions/cache@v2
with:
path: vendor/bundle
key: ${{ runner.os }}-${{ matrix.ruby }}-gems-unit-${{ hashFiles(format('{0}.lock', matrix.gemfile || 'Gemfile')) }}
restore-keys: |
${{ runner.os }}-${{ matrix.ruby }}-gems-unit-
- name: Install RubyGems
run: |
bundle config path vendor/bundle
bundle config build.libv8 --with-system-v8
bundle install --jobs $(nproc) --retry 3
bundler: 2.1.4
bundler-cache: true

- name: Setup database
run: |
Expand Down

0 comments on commit eaf4290

Please sign in to comment.