Remove temporarily RubyInline from gemspec due to bundle install error. #340
This file contains 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, pull_request] | |
jobs: | |
build: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, windows-latest] | |
# Due to https://github.com/actions/runner/issues/849, we have to use quotes for '3.0' | |
ruby: [2.3, 2.4, 2.6, 2.7, '3.0', 3.1, 3.2, 3.3] | |
exclude: | |
- os: windows-latest | |
ruby: 2.3 | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
id: ruby-inst | |
with: | |
ruby-version: ${{ matrix.ruby }} | |
bundler-cache: true | |
- name: Fix RubyInline | |
if: matrix.os == 'windows-latest' | |
shell: cmd | |
run: | | |
start /b /wait ruby -e "exit(Gem::Version.new('${{ matrix.ruby }}') >= Gem::Version.new('3.1') ? 0 : 1)" | |
if %errorlevel% == 0 ( | |
echo TODO: install fixed RubyInline | |
) | |
cd >nul | |
- name: Run the default task | |
run: bundle exec rake | |
# env: | |
# NTRIP_CASTER: "rtk2go.com:2101" | |
# NTRIP_AUTH: "test@example.com:none" |