cache keys by job and inputs

This commit is contained in:
Jacob Heider 2023-02-04 19:10:30 -05:00 committed by Max Howell
parent 63632639a0
commit 53399afa73
4 changed files with 16 additions and 16 deletions

View file

@ -24,7 +24,7 @@ jobs:
- uses: actions/cache@v2
with:
path: $HOME/.cache/deno
key: ${{ runner.os }}-deno-deps
key: ${{ runner.os }}-deno-get-platform-${{ hashFiles('deno.jsonc')}}
- uses: teaxyz/setup@v0
- run: scripts/get-platform.ts ${{ inputs.projects }}
id: platform
@ -42,15 +42,15 @@ jobs:
built: ${{ env.built }}
pr: ${{ env.PR }}
steps:
- uses: actions/cache@v2
with:
path: ${{ needs.get-platform.outputs.cache-set }}
key: ${{ runner.os }}-deno-deps
- uses: teaxyz/setup@v0
id: tea
with:
srcroot: tea.xyz/var/pantry
prefix: ${{ github.workspace }}
- uses: actions/cache@v2
with:
path: ${{ needs.get-platform.outputs.cache-set }}
key: ${{ runner.os }}-deno-bottle-${{ hashFiles('.tea/tea.xyz/var/pantry/deno.jsonc')}}
- name: configure scripts PATH
run: echo "$TEA_PREFIX/tea.xyz/var/pantry/scripts" >> $GITHUB_PATH
@ -167,17 +167,17 @@ jobs:
run:
working-directory: tea.xyz/var/pantry
steps:
- uses: actions/cache@v2
with:
path: $HOME/.cache/deno
key: ${{ runner.os }}-deno-deps
- uses: teaxyz/setup@v0
id: tea
with:
srcroot: tea.xyz/var/pantry
prefix: ${{ github.workspace }}
- uses: actions/cache@v2
with:
path: $HOME/.cache/deno
key: ${{ runner.os }}-deno-bottle-${{ hashFiles('.tea/tea.xyz/var/pantry/deno.jsonc')}}
- uses: actions/download-artifact@v3
with:
name: ${{ inputs.platform }}-bottles

View file

@ -30,7 +30,7 @@ jobs:
- uses: actions/cache@v2
with:
path: $HOME/.cache/deno
key: ${{ runner.os }}-deno-deps
key: ${{ runner.os }}-deno-get-platform-${{ hashFiles('deno.jsonc')}}
- uses: teaxyz/setup@v0
- run: scripts/get-platform.ts ${{ inputs.projects }}
id: platform
@ -47,7 +47,7 @@ jobs:
- uses: actions/cache@v2
with:
path: ${{ needs.get-platform.outputs.cache-set }}
key: ${{ runner.os }}-deno-deps
key: ${{ runner.os }}-deno-build-${{ hashFiles('deno.jsonc')}}
- uses: teaxyz/setup@v0
id: tea
with:
@ -115,7 +115,7 @@ jobs:
- uses: actions/cache@v2
with:
path: ${{ needs.get-platform.outputs.cache-set }}
key: ${{ runner.os }}-deno-deps
key: ${{ runner.os }}-deno-test-${{ hashFiles('deno.jsonc')}}
- uses: teaxyz/setup@v0
- name: configure scripts PATH
@ -166,7 +166,7 @@ jobs:
- uses: actions/cache@v2
with:
path: $HOME/.cache/deno
key: ${{ runner.os }}-deno-deps
key: ${{ runner.os }}-deno-stage-${{ hashFiles('deno.jsonc')}}
- uses: teaxyz/setup@v0
- name: configure scripts PATH

View file

@ -14,7 +14,7 @@ jobs:
- uses: actions/cache@v2
with:
path: $HOME/.cache/deno
key: ${{ runner.os }}-deno-deps
key: ${{ runner.os }}-deno-cd-${{ hashFiles('deno.jsonc')}}
- uses: teaxyz/setup@v0
- run: ./scripts/map-projects-to-githubs.ts
env:

View file

@ -15,7 +15,7 @@ jobs:
- uses: actions/cache@v2
with:
path: $HOME/.cache/deno
key: ${{ runner.os }}-deno-deps
key: ${{ runner.os }}-deno-queue-detail-ingestion-${{ hashFiles('deno.jsonc')}}
- uses: teaxyz/setup@v0
- run: ./scripts/index-packages.ts ${{ inputs.projects }}
env: