Skip to content

Commit

Permalink
Fix RubyInline problem by using patched gem
Browse files Browse the repository at this point in the history
  • Loading branch information
fenrir-naru committed Dec 7, 2024
1 parent 818d9d7 commit 9887b8a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 14 deletions.
14 changes: 0 additions & 14 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,20 +23,6 @@ jobs:
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 (
gem install specific_install hoe minitest
rem To use -i option, install specific_install again.
gem specific_install https://github.com/rdp/specific_install.git
gem specific_install -i vendor/bundle https://github.com/fenrir-naru/rubyinline.git fix_windoze
)
cd vendor/bundle
dir
cd >nul
- name: Run the default task
run: bundle exec rake
# env:
Expand Down
5 changes: 5 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,8 @@ source "https://rubygems.org"

# Specify your gem's dependencies in gps_pvt.gemspec
gemspec

if /mingw/ =~ RUBY_PLATFORM then
gem "RubyInline",
:path => File::join(File.absolute_path(File::dirname(__FILE__)), 'misc')
end
Binary file added misc/RubyInline-3.14.1.gem
Binary file not shown.

0 comments on commit 9887b8a

Please sign in to comment.