name: rake on: push: branches: [ master ] tags: - '*' pull_request: jobs: rake: name: test on ruby-${{ matrix.ruby }} ${{ matrix.os }} runs-on: ${{ matrix.os }} continue-on-error: ${{ matrix.experimental }} strategy: fail-fast: false matrix: ruby: [ '2.7', '2.6', '2.5', '2.4' ] os: [ ubuntu-latest, windows-latest, macos-latest ] experimental: [ false ] steps: - uses: actions/checkout@v2 with: submodules: recursive - uses: ruby/setup-ruby@v1 with: ruby-version: ${{ matrix.ruby }} - uses: actions/cache@v2 with: path: vendor/bundle key: bundle-${{ matrix.os }}-${{ matrix.ruby }}-${{ hashFiles('**/*.gemspec') }} restore-keys: bundle-${{ matrix.os }}-${{ matrix.ruby }} - if: matrix.os == 'macos-latest' run: brew install autoconf automake libtool - run: bundle config set path 'vendor/bundle' - run: bundle install --jobs 4 --retry 3 - run: bundle exec rake compile - run: bundle exec rake