Skip to content

Commit 45f0d8a

Browse files
committed
CI: Add the bundle exec
Add the `bundle exec` if we can add it to the commands.
1 parent 6368ee0 commit 45f0d8a

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,18 +49,18 @@ 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

6565
- run: rake install
6666

@@ -98,9 +98,9 @@ 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

105105
- run: sudo rake install
106106

.github/workflows/libffi.yml

Lines changed: 4 additions & 4 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
4141
run: 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)