Add Windows and MacOS to CI #100
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: Ruby | |
| on: | |
| push: | |
| branches: [ master ] | |
| pull_request: | |
| branches: [ master ] | |
| jobs: | |
| build: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ ubuntu-latest, windows-latest, macos-latest ] | |
| ruby: [ jruby-9.4.12.0, jruby-head ] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: Set up JRuby versions | |
| uses: ruby/setup-ruby@v1 | |
| with: | |
| ruby-version: ${{ matrix.ruby }} | |
| - name: Install MingW on Windows | |
| if: ${{ matrix.os == 'windows-latest' }} | |
| uses: egor-tensin/setup-mingw@v2 | |
| with: | |
| platform: x64 | |
| - name: Build and test with rake | |
| run: | | |
| ruby -v | |
| ruby extconf.rb | |
| make | |
| gem install rspec | |
| rake spec |