Commit 1d905c71 authored by Jerome Wu's avatar Jerome Wu

Fix workflow cache using restore-keys

parent 64a3883d
...@@ -7,9 +7,12 @@ on: ...@@ -7,9 +7,12 @@ on:
branches: branches:
- n4.3.1-wasm - n4.3.1-wasm
# env: env:
# EM_VERSION: 2.0.8 FFMPEG_ST: no
# EM_CACHE_FOLDER: 'emsdk-cache' DIST_PATH: wasm/packages/core/dist
CACHE_KEY_PREFIX: ffmpeg.wasm-core-$GITHUB_RUN_ID
# EM_VERSION: 2.0.8
# EM_CACHE_FOLDER: 'emsdk-cache'
jobs: jobs:
build-libs: build-libs:
...@@ -44,7 +47,9 @@ jobs: ...@@ -44,7 +47,9 @@ jobs:
path: | path: |
build build
wasm/cache wasm/cache
key: ffmpeg.wasm-core key: $CACHE_KEY_PREFIX-$GITHUB_JOB
restore-keys: |
$CACHE_KEY_PREFIX-
- name: List cached libs - name: List cached libs
run: ls build/lib run: ls build/lib
- name: Build FFMpeg Libs - name: Build FFMpeg Libs
...@@ -62,7 +67,11 @@ jobs: ...@@ -62,7 +67,11 @@ jobs:
path: | path: |
build build
wasm/cache wasm/cache
key: ffmpeg.wasm-core key: $CACHE_KEY_PREFIX-$GITHUB_JOB
restore-keys: |
$CACHE_KEY_PREFIX-
- name: List cached libs
run: ls build/lib
- name: Build FFMpeg - name: Build FFMpeg
run: | run: |
bash build-with-docker.sh \ bash build-with-docker.sh \
...@@ -72,7 +81,7 @@ jobs: ...@@ -72,7 +81,7 @@ jobs:
- uses: actions/upload-artifact@master - uses: actions/upload-artifact@master
with: with:
name: ffmpeg-core name: ffmpeg-core
path: wasm/packages/core/dist path: $DIST_PATH
# Disable macos build due to there is no ldconfig command # Disable macos build due to there is no ldconfig command
# during freetype2 build. # during freetype2 build.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment