Skip to content

Commit 87bf961

Browse files
committed
CI: Add the bundle exec
1 parent 6368ee0 commit 87bf961

File tree

2 files changed

+16
-16
lines changed

2 files changed

+16
-16
lines changed

.github/workflows/ci.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -49,20 +49,20 @@ jobs:
4949

5050
- run: bundle install
5151

52-
- run: rake compile
52+
- run: bundle exec rake compile
5353

5454
# If Fiddle in Ruby's master has the same version of this Fiddle,
5555
# "gem install pkg/*.gem" fails.
56-
- run: rake version:bump
56+
- run: bundle exec rake version:bump
5757
if: >-
5858
matrix.ruby == 'debug' ||
5959
matrix.ruby == 'mingw' ||
6060
matrix.ruby == 'mswin'
6161
6262
# This is for ensuring using Fiddle in this repository.
63-
- run: ruby -Ilib test/run.rb
63+
- run: bundle exec ruby -Ilib test/run.rb
6464

65-
- run: rake install
65+
- run: bundle exec rake install
6666

6767
- name: Run test against installed gem
6868
# We can't use Fiddle gem with older RubyInstaller because
@@ -72,8 +72,8 @@ jobs:
7272
matrix.os != 'windows-latest' ||
7373
(matrix.os == 'windows-latest' && matrix.ruby >= '3.0')
7474
run: |
75-
ruby -run -e mkdir -- -p tmp/
76-
ruby -run -e cp -- -pr test/ tmp/
75+
bundle exec ruby -run -e mkdir -- -p tmp/
76+
bundle exec ruby -run -e cp -- -pr test/ tmp/
7777
cd tmp
7878
ruby test/run.rb
7979
@@ -98,16 +98,16 @@ jobs:
9898
9999
- run: sudo bundle install --jobs $(nproc)
100100

101-
- run: rake compile
101+
- run: bundle exec rake compile
102102

103-
- run: ruby -Ilib test/run.rb
103+
- run: bundle exec ruby -Ilib test/run.rb
104104

105-
- run: sudo rake install
105+
- run: sudo bundle exec rake install
106106

107107
- name: Run test against installed gem
108108
run: |
109-
ruby -run -e mkdir -- -p tmp/
110-
ruby -run -e cp -- -pr test/ tmp/
109+
bundle exec ruby -run -e mkdir -- -p tmp/
110+
bundle exec ruby -run -e cp -- -pr test/ tmp/
111111
cd tmp
112112
ruby test/run.rb
113113

.github/workflows/libffi.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,20 +32,20 @@ jobs:
3232
- name: Install dependencies
3333
run: bundle install
3434
- name: Compile with libffi
35-
run: rake compile -- --with-libffi-dir=${{ matrix.libffi-prefix }}
35+
run: bundle exec rake compile -- --with-libffi-dir=${{ matrix.libffi-prefix }}
3636
if: ${{ matrix.libffi-prefix != '' }}
3737
- name: Compile with libffi source
38-
run: rake compile -- --with-libffi-source-dir=$(pwd)/libffi-${{ matrix.libffi }}
38+
run: bundle exec rake compile -- --with-libffi-source-dir=$(pwd)/libffi-${{ matrix.libffi }}
3939
if: ${{ matrix.libffi-prefix == '' }}
4040
- name: Run test
41-
run: rake test
41+
run: bundle exec rake test
4242
- name: Install gem
4343
run: |
44-
rake build
44+
bundle exec rake build
4545
gem install pkg/fiddle-*.gem -- --with-libffi-dir=${{ matrix.libffi-prefix }}
4646
if: ${{ matrix.ruby != 'head' && matrix.libffi-prefix != '' }}
4747
- name: Install gem with libffi source
4848
run: |
49-
rake build
49+
bundle exec rake build
5050
gem install pkg/fiddle-*.gem -- --with-libffi-source-dir=$(pwd)/libffi-${{ matrix.libffi }}
5151
if: ${{ matrix.ruby != 'head' && matrix.libffi-prefix == '' }}

0 commit comments

Comments
 (0)