Skip to content

Fix RubyInline problem in Windows Ruby >= 3.1 with patched version #320

Fix RubyInline problem in Windows Ruby >= 3.1 with patched version

Fix RubyInline problem in Windows Ruby >= 3.1 with patched version #320

Workflow file for this run

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'
# https://github.com/IBM/aspera-cli
# copy the file [Ruby main dir]\lib\libx64-ucrt-ruby310.dll.a to [Ruby main dir]\lib\libx64-ucrt-ruby310.a (remove the dll extension)
shell: cmd
run: |
start /b /wait ruby -e "exit(Gem::Version.new('${{ matrix.ruby }}') >= Gem::Version.new('3.1') ? 0 : 1)"
if %errorlevel% == 0 (
gem install specific_install hoe
gem specific_install https://github.com/fenrir-naru/rubyinline.git fix_windoze
)
cd >nul
- name: Run the default task
run: bundle exec rake
# env:
# NTRIP_CASTER: "rtk2go.com:2101"
# NTRIP_AUTH: "test@example.com:none"