Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,18 +49,18 @@ jobs:

- run: bundle install

- run: rake compile
- run: bundle exec rake compile

# If Fiddle in Ruby's master has the same version of this Fiddle,
# "gem install pkg/*.gem" fails.
- run: rake version:bump
- run: bundle exec rake version:bump
if: >-
matrix.ruby == 'debug' ||
matrix.ruby == 'mingw' ||
matrix.ruby == 'mswin'

# This is for ensuring using Fiddle in this repository.
- run: ruby -Ilib test/run.rb
- run: bundle exec ruby -Ilib test/run.rb

- run: rake install

Expand Down Expand Up @@ -98,9 +98,9 @@ jobs:

- run: sudo bundle install --jobs $(nproc)

- run: rake compile
- run: bundle exec rake compile

- run: ruby -Ilib test/run.rb
- run: bundle exec ruby -Ilib test/run.rb

- run: sudo rake install

Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/libffi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,20 +32,20 @@ jobs:
- name: Install dependencies
run: bundle install
- name: Compile with libffi
run: rake compile -- --with-libffi-dir=${{ matrix.libffi-prefix }}
run: bundle exec rake compile -- --with-libffi-dir=${{ matrix.libffi-prefix }}
if: ${{ matrix.libffi-prefix != '' }}
- name: Compile with libffi source
run: rake compile -- --with-libffi-source-dir=$(pwd)/libffi-${{ matrix.libffi }}
run: bundle exec rake compile -- --with-libffi-source-dir=$(pwd)/libffi-${{ matrix.libffi }}
if: ${{ matrix.libffi-prefix == '' }}
- name: Run test
run: rake test
- name: Install gem
run: |
rake build
bundle exec rake build
gem install pkg/fiddle-*.gem -- --with-libffi-dir=${{ matrix.libffi-prefix }}
if: ${{ matrix.ruby != 'head' && matrix.libffi-prefix != '' }}
- name: Install gem with libffi source
run: |
rake build
bundle exec rake build
gem install pkg/fiddle-*.gem -- --with-libffi-source-dir=$(pwd)/libffi-${{ matrix.libffi }}
if: ${{ matrix.ruby != 'head' && matrix.libffi-prefix == '' }}
Loading