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]
|
os: [ubuntu-latest, macOS-latest]
|
||||||
steps:
|
steps:
|
||||||
- name: Set up Homebrew
|
- name: Set up Homebrew
|
||||||
|
id: set-up-homebrew
|
||||||
run: |
|
run: |
|
||||||
if which brew &>/dev/null; then
|
if which brew &>/dev/null; then
|
||||||
HOMEBREW_REPOSITORY="$(brew --repo)"
|
HOMEBREW_REPOSITORY="$(brew --repo)"
|
||||||
@ -76,10 +77,10 @@ jobs:
|
|||||||
id: cache
|
id: cache
|
||||||
uses: actions/cache@v1
|
uses: actions/cache@v1
|
||||||
with:
|
with:
|
||||||
path: Library/Homebrew/vendor/bundle/
|
path: Library/Homebrew/vendor/bundle/ruby/
|
||||||
key: ${{ runner.os }}-gems-${{ steps.set-up-homebrew.outputs.gems-hash }}
|
key: ${{ runner.os }}-rubygems-${{ steps.set-up-homebrew.outputs.gems-hash }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-gems-
|
${{ runner.os }}-rubygems-
|
||||||
|
|
||||||
- name: Install Bundler RubyGems
|
- name: Install Bundler RubyGems
|
||||||
if: steps.cache.outputs.cache-hit != 'true'
|
if: steps.cache.outputs.cache-hit != 'true'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user