Skip to content

Commit

Permalink
switch to ensuring that ruby-build is installed
Browse files Browse the repository at this point in the history
  • Loading branch information
copiousfreetime committed Feb 12, 2025
1 parent 4b7154c commit 375b54d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
10 changes: 10 additions & 0 deletions .semaphore/ensure-ruby-build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#
# Ensure that ruby-build is installed so we can have the right ruby version
#
if [ -d "$(rbenv root)/plugins/ruby-build" ]; then
echo "Updating ruby-build"
git -C "$(rbenv root)/plugins/ruby-build" pull
else
echo "Installing ruby-build"
git clone https://github.com/rbenv/ruby-build.git "$(rbenv root)"/plugins/ruby-build
fi
4 changes: 2 additions & 2 deletions .semaphore/semaphore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ blocks:
commands:
- checkout
- sudo apt-get update && sudo apt-get install -y libyaml-dev
- git -C ${HOME}/.rbenv/plugins/ruby-build pull
- source .semaphore/ensure-ruby-build.sh
epilogue:
always:
commands:
Expand Down Expand Up @@ -52,7 +52,7 @@ blocks:
prologue:
commands:
- checkout
- git -C ${HOME}/.rbenv/plugins/ruby-build pull
- source .semaphore/ensure-ruby-build.sh
jobs:
- name: macos matrix test
matrix:
Expand Down

0 comments on commit 375b54d

Please sign in to comment.