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 fd14fa8
Showing 1 changed file with 4 additions and 18 deletions.
22 changes: 4 additions & 18 deletions .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,31 +32,17 @@ jobs:
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 fd14fa8

Please sign in to comment.