Skip to content

Commit 6074363

Browse files
committed
Use bundler-cache in setup-ruby
1 parent 56acc2c commit 6074363

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -123,16 +123,7 @@ jobs:
123123
- uses: ruby/setup-ruby@v1
124124
with:
125125
ruby-version: ${{ matrix.ruby }}
126-
bundler-cache: false
127-
128-
# FIXME: setup-go installs cache in `vendor/` and setup-ruby installs cache in `vendor/bundle/`
129-
# If we use the cache in setup-go and setup-ruby at the same time, this doesn't work well because they use the same directory.
130-
# Therefore, the installation location needs to be changed from the setup-ruby default.
131-
- name: bundle install
132-
run: |
133-
set -xe
134-
bundle config --local path ruby-vendor/bundle
135-
bundle install --jobs 4
126+
bundler-cache: true
136127

137128
- name: export CGO_CFLAGS for golangci-lint
138129
run: bundle exec rake go:build_envs[CGO_CFLAGS] >> $GITHUB_ENV

0 commit comments

Comments
 (0)