Skip to content

Commit

Permalink
Use bultin bundler cache instead cache action
Browse files Browse the repository at this point in the history
Github docs suggest using the ruby action with bundler cache, if works.
  • Loading branch information
MacTwister committed Dec 19, 2023
1 parent 1939eb7 commit 6d519d9
Showing 1 changed file with 4 additions and 25 deletions.
29 changes: 4 additions & 25 deletions .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,37 +26,16 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Show available Ruby versions
run: |
ls $RUNNER_TOOL_CACHE/Ruby
uname -a
cat /etc/os-release
- name: Set up Ruby
uses: ruby/setup-ruby@v1
#with:
#bundler-cache: true

- name: Cache gems
uses: actions/cache@v3
with:
path: vendor/bundle
key: ${{ runner.os }}-gem-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-gem-
- name: Install required packages
run: |
sudo apt-get update -y
sudo apt-get install libpq-dev
sudo apt-get install g++ qt5-default libqt5webkit5-dev gstreamer1.0-plugins-base gstreamer1.0-tools gstreamer1.0-x
- name: Bundle
run: |
pwd
gem install bundler -v 2.4.20
bundle config path vendor/bundle
bundle install --jobs 4 --retry 3
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
bundler-cache: true

- name: Test
run: |
Expand Down

0 comments on commit 6d519d9

Please sign in to comment.