mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
workflows/tests: fix gem caching
This commit is contained in:
parent
7f69550e00
commit
fe0d45b123
7
.github/workflows/tests.yml
vendored
7
.github/workflows/tests.yml
vendored
@ -15,6 +15,7 @@ jobs:
|
||||
os: [ubuntu-latest, macOS-latest]
|
||||
steps:
|
||||
- name: Set up Homebrew
|
||||
id: set-up-homebrew
|
||||
run: |
|
||||
if which brew &>/dev/null; then
|
||||
HOMEBREW_REPOSITORY="$(brew --repo)"
|
||||
@ -76,10 +77,10 @@ jobs:
|
||||
id: cache
|
||||
uses: actions/cache@v1
|
||||
with:
|
||||
path: Library/Homebrew/vendor/bundle/
|
||||
key: ${{ runner.os }}-gems-${{ steps.set-up-homebrew.outputs.gems-hash }}
|
||||
path: Library/Homebrew/vendor/bundle/ruby/
|
||||
key: ${{ runner.os }}-rubygems-${{ steps.set-up-homebrew.outputs.gems-hash }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-gems-
|
||||
${{ runner.os }}-rubygems-
|
||||
|
||||
- name: Install Bundler RubyGems
|
||||
if: steps.cache.outputs.cache-hit != 'true'
|
||||
|
Loading…
x
Reference in New Issue
Block a user