CI: Cache Ruby dependencies in macOS platform
@@ -98,10 +98,16 @@ jobs:
- name: Update/Install packages
run: |
IMAGEMAGICK_VERSION=${{ matrix.imagemagick-version.full }} ./before_install_osx.sh
+ - name: Cache Ruby dependencies
+ uses: actions/cache@v1
+ with:
+ path: ./vendor/bundle
+ key: v1-macos-${{ matrix.ruby-version }}-${{ hashFiles('rmagick.gemspec') }}
+ restore-keys: |
+ v1-macos-${{ matrix.ruby-version }}-${{ hashFiles('rmagick.gemspec') }}
- name: Build and test with Rake
run: |
- gem install bundler
- bundle install --jobs 4 --retry 3
+ bundle install --path=vendor/bundle --jobs 4 --retry 3
bundle exec rake
test-windows:
