brewのcacheを有効化する実験

This commit is contained in:
Nebel 2021-07-17 11:23:29 +09:00
parent 069ea51e36
commit 3d7a6489c0

View file

@ -7,6 +7,13 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- id: brew_cache
run: echo "::set-output name=dir::$(brew --cache)"
- uses: actions/cache@v2
with:
path: ${{ steps.brew_cache.outputs.dir }}
key: brew-${{ hashFiles('**/Brewfile.lock.json') }}
restore-keys: brew-
- uses: actions/setup-node@v2 - uses: actions/setup-node@v2
with: { node-version: lts/*, cache: yarn } with: { node-version: lts/*, cache: yarn }
- name: Git config - name: Git config