Split st and mt core build cache
This commit is contained in:
parent
5031606c42
commit
44ea5f04dc
10
.github/workflows/CI.yml
vendored
10
.github/workflows/CI.yml
vendored
@ -21,12 +21,16 @@ jobs:
|
|||||||
id: cache-build
|
id: cache-build
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
path: build-cache
|
path: |
|
||||||
key: build-cache-v1-${{ hashFiles('Dockerfile', 'build/*') }}
|
build-cache-st
|
||||||
|
build-cache-mt
|
||||||
|
key: build-cache-v1-${{ hashFiles('Dockerfile', 'Makefile', 'build/*') }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
build-cache-v1-
|
build-cache-v1-
|
||||||
- name: Build ffmpeg-core
|
- name: Build ffmpeg-core
|
||||||
run: make ci ci-mt
|
run: make prd EXTRA_ARGS="--cache-from=type=local,src=build-cache-st --cache-to=type=local,dest=build-cache-st,mode=max"
|
||||||
|
- name: Build ffmpet-core-mt
|
||||||
|
run: make prd-mt EXTRA_ARGS="--cache-from=type=local,src=build-cache-mt --cache-to=type=local,dest=build-cache-mt,mode=max"
|
||||||
- name: Upload core and core-mt
|
- name: Upload core and core-mt
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
|
7
Makefile
7
Makefile
@ -3,7 +3,6 @@ all: dev
|
|||||||
MT_FLAGS := -sUSE_PTHREADS -pthread
|
MT_FLAGS := -sUSE_PTHREADS -pthread
|
||||||
|
|
||||||
DEV_ARGS := --progress=plain
|
DEV_ARGS := --progress=plain
|
||||||
CI_ARGS := --cache-from=type=local,src=build-cache --cache-to=type=local,dest=build-cache,mode=max
|
|
||||||
|
|
||||||
DEV_CFLAGS := --profiling
|
DEV_CFLAGS := --profiling
|
||||||
DEV_MT_CFLAGS := $(DEV_CFLAGS) $(MT_FLAGS)
|
DEV_MT_CFLAGS := $(DEV_CFLAGS) $(MT_FLAGS)
|
||||||
@ -49,9 +48,3 @@ prd:
|
|||||||
|
|
||||||
prd-mt:
|
prd-mt:
|
||||||
make build-mt EXTRA_CFLAGS="$(PROD_MT_CFLAGS)"
|
make build-mt EXTRA_CFLAGS="$(PROD_MT_CFLAGS)"
|
||||||
|
|
||||||
ci:
|
|
||||||
make prd EXTRA_ARGS="$(CI_ARGS)"
|
|
||||||
|
|
||||||
ci-mt:
|
|
||||||
make prd-mt EXTRA_ARGS="$(CI_ARGS)"
|
|
||||||
|
Loading…
Reference in New Issue
Block a user