Skip to content

Commit

Permalink
push.yml: just testing
Browse files Browse the repository at this point in the history
  • Loading branch information
ia committed Dec 18, 2023
1 parent f5b8b5d commit 6931b14
Showing 1 changed file with 19 additions and 10 deletions.
29 changes: 19 additions & 10 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,14 @@ jobs:
run: ./source/metadata.py ${{ matrix.model }}.json

- name: Cache ${{ matrix.model }} index file
id: cache-json
uses: actions/cache@v3
env:
cache-name: cache-files-json
with:
path: source/Hexfile/${{ matrix.model }}.json
key: ${{ runner.OS }}
key: ${{ runner.os }}-json-${{ env.cache-name }}
restore-keys: ${{ runner.os }}-json-${{ env.cache-name }}-


build_multi-lang:
Expand Down Expand Up @@ -105,22 +109,27 @@ jobs:
- name: Generate json index file
run: ./source/metadata.py ${{ matrix.model }}_multi-lang.json

- name: Cache ${{ matrix.model }} index file
uses: actions/cache@v3
with:
path: source/Hexfile/${{ matrix.model }}_multi-lang.json
key: ${{ runner.OS }}_multi-lang


metaindex:
runs-on: ubuntu-20.04
container:
image: alpine:3.16
strategy:
fail-fast: true

steps:
- name: Archive metadata index files

# - if: ${{ jobs.build.steps.cache-json.outputs.cache-hit != 'true' }}
# name: Uncache index file
# id: cache-json
# uses: actions/cache@v3
# env:
# cache-name: cache-files-json
# with:
# path: source/Hexfile/
# key: ${{ runner.os }}-json-${{ env.cache-name }}
# restore-keys: ${{ runner.os }}-json-${{ env.cache-name }}-

- if: ${{ jobs.build.steps.cache-json.outputs.cache-hit != 'true' }}
name: Archive metadata index files
uses: actions/upload-artifact@v4
with:
name: metadata
Expand Down

0 comments on commit 6931b14

Please sign in to comment.