Skip to content

Commit

Permalink
Fix RubyInline problem by using Gemfile
Browse files Browse the repository at this point in the history
  • Loading branch information
fenrir-naru committed Dec 7, 2024
1 parent 7c69eae commit 1765640
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 11 deletions.
11 changes: 0 additions & 11 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +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
gem specific_install https://github.com/rdp/specific_install.git # to use -i
gem specific_install -i vendor/bundle https://github.com/fenrir-naru/rubyinline.git fix_windoze
)
cd >nul
- name: Run the default task
run: bundle exec rake
# env:
Expand Down
6 changes: 6 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,9 @@ source "https://rubygems.org"

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

if /mingw/ =~ RUBY_PLATFORM then
gem "RubyInline",
:git => 'https://github.com/fenrir-naru/rubyinline.git',
:branch => 'fix_windoze'
end

0 comments on commit 1765640

Please sign in to comment.