Install gperf for mingw as well #1627
Workflow file for this run
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-truffleruby | |
| 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 | |
| - ruby: truffleruby # need truffleruby 24.2+ | |
| os: ubuntu-latest | |
| - ruby: truffleruby # need truffleruby 24.2+ | |
| os: macos-latest | |
| - ruby: truffleruby | |
| os: windows-latest | |
| - ruby: truffleruby-head | |
| os: windows-latest | |
| include: | |
| - ruby: mingw | |
| os: windows-latest | |
| - ruby: mswin | |
| os: windows-2022 | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Ruby, gperf, and upgrade toolchain (MinGW on windows-latest) | |
| if: matrix.os == 'windows-latest' && matrix.ruby == 'mingw' | |
| uses: ruby/setup-ruby-pkgs@v1 | |
| with: | |
| ruby-version: ${{ matrix.ruby }} | |
| bundler-cache: true | |
| mingw: gperf _upgrade_ # Ensure gperf is installed and toolchain packages are updated | |
| - name: Set up Ruby (other OSes or MSWIN on Windows) | |
| if: matrix.os != 'windows-latest' || matrix.ruby == 'mswin' # Handles ubuntu, macos, and the mswin on windows-2022 | |
| uses: ruby/setup-ruby@v1 | |
| with: | |
| ruby-version: ${{ matrix.ruby }} | |
| bundler-cache: true # 'bundle install' and cache | |
| - name: Run test | |
| run: bundle exec rake compile test |