Merge pull request #108 from ruby/dependabot/github_actions/rubygems/… #1403
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: build | |
| on: | |
| push: | |
| pull_request: | |
| schedule: | |
| - cron: '10 3 * * *' | |
| jobs: | |
| ruby-versions: | |
| uses: ruby/actions/.github/workflows/ruby_versions.yml@master | |
| with: | |
| engine: cruby | |
| min_version: 2.6 | |
| build: | |
| if: ${{ startsWith(github.repository, 'ruby/') || github.event_name != 'schedule' }} | |
| name: build (${{ matrix.ruby }} / ${{ matrix.os }}) | |
| needs: ruby-versions | |
| strategy: | |
| matrix: | |
| ruby: ${{ fromJson(needs.ruby-versions.outputs.versions) }} | |
| os: [ ubuntu-latest, macos-latest, windows-latest ] | |
| exclude: | |
| - ruby: head | |
| os: windows-latest | |
| include: | |
| - ruby: mingw | |
| os: windows-latest | |
| - ruby: mswin | |
| os: windows-2019 | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Ruby | |
| uses: ruby/setup-ruby@v1 | |
| with: | |
| ruby-version: ${{ matrix.ruby }} | |
| bundler-cache: true # 'bundle install' and cache | |
| - run: choco install gperf | |
| if: ${{ matrix.ruby == 'mswin' }} | |
| - name: Run test | |
| run: bundle exec rake compile test |