diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6c2aafaac..acc699779 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -39,25 +39,25 @@ jobs: - { os: windows-latest, ruby: jruby } - { os: windows-latest, ruby: jruby-head } + env: + BUNDLE_WITHOUT: benchmark + steps: - uses: actions/checkout@v5 - name: Set up Ruby uses: ruby/setup-ruby-pkgs@v1 with: + bundler-cache: true ruby-version: ${{ matrix.ruby }} apt-get: "${{ startsWith(matrix.ruby, 'jruby') && 'ragel' || '' }}" brew: "${{ startsWith(matrix.ruby, 'jruby') && 'ragel' || '' }}" - - run: | - bundle config --without benchmark - bundle install - - - run: rake compile ${{ matrix.env }} + - run: bundle exec rake compile ${{ matrix.env }} - - run: rake test JSON_COMPACT=1 ${{ matrix.env }} + - run: bundle exec rake test JSON_COMPACT=1 ${{ matrix.env }} - - run: rake build + - run: bundle exec rake build - run: gem install pkg/*.gem if: ${{ matrix.ruby != '3.2' }}