Skip to content

Commit

Permalink
CI: Specify bundler version if necessary
Browse files Browse the repository at this point in the history
  • Loading branch information
mrkn authored May 13, 2024
1 parent d36d783 commit 233f5a4
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,16 @@ jobs:
with:
ruby-version: ${{ matrix.ruby }}

- run: gem install bundler
- name: Detect installable bundler version
run: |
case "${{ matrix.ruby }}" in
2.7|2.6) bundler_version="2.4.22" ;;
2.5|2.4) bundler_version="2.3.27" ;;
*) bundler_version="" ;;
esac
echo "bundler_version=$bundler_version" >> $GITHUB_ENV
- run: gem install bundler${bundler_version:+ -v $bundler_version}
- run: bundle install

- run: rake --trace compile
Expand Down

0 comments on commit 233f5a4

Please sign in to comment.