mirror of
https://github.com/ivabus/pantry
synced 2024-11-23 00:45:07 +03:00
cache keys by job and inputs
This commit is contained in:
parent
63632639a0
commit
53399afa73
4 changed files with 16 additions and 16 deletions
20
.github/workflows/bottle.yml
vendored
20
.github/workflows/bottle.yml
vendored
|
@ -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
|
||||
|
|
8
.github/workflows/build.yml
vendored
8
.github/workflows/build.yml
vendored
|
@ -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
|
||||
|
|
2
.github/workflows/cd.yml
vendored
2
.github/workflows/cd.yml
vendored
|
@ -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:
|
||||
|
|
2
.github/workflows/index-data.yml
vendored
2
.github/workflows/index-data.yml
vendored
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue