Skip to content

Commit

Permalink
Install Ruby manually (#172)
Browse files Browse the repository at this point in the history
  • Loading branch information
stefcameron authored Jan 7, 2025
1 parent 12e9681 commit 1049ae1
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/jekyll-gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,18 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Prepare tool cache for Ruby installation
# Adjust permissions for /opt/hostedtoolcache
run: |
sudo mkdir -p /opt/hostedtoolcache/Ruby/3.1.4/x64
sudo chmod -R 777 /opt/hostedtoolcache/Ruby
- name: Install Ruby with ruby-build
# Install Ruby manually if the environment is unsupported
run: |
curl -fsSL https://github.com/rbenv/ruby-build/archive/refs/heads/master.tar.gz | tar -xzC /tmp/
sudo /tmp/ruby-build-master/bin/ruby-build 3.1.4 /opt/hostedtoolcache/Ruby/3.1.4/x64
sudo chmod -R 777 /opt/hostedtoolcache/Ruby
touch /opt/hostedtoolcache/Ruby/3.1.4/x64.complete
- name: Setup Ruby
uses: ruby/setup-ruby@8575951200e472d5f2d95c625da0c7bec8217c42 # v1.161.0
with:
Expand Down

0 comments on commit 1049ae1

Please sign in to comment.