Build cores at the same time
This commit is contained in:
parent
44ea5f04dc
commit
3e97d728f7
57
.github/workflows/CI.yml
vendored
57
.github/workflows/CI.yml
vendored
@ -21,33 +21,58 @@ jobs:
|
|||||||
id: cache-build
|
id: cache-build
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
path: |
|
path: build-cache-st
|
||||||
build-cache-st
|
key: build-cache-st-v1-${{ hashFiles('Dockerfile', 'Makefile', 'build/*') }}
|
||||||
build-cache-mt
|
|
||||||
key: build-cache-v1-${{ hashFiles('Dockerfile', 'Makefile', 'build/*') }}
|
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
build-cache-v1-
|
build-cache-st-v1-
|
||||||
- name: Build ffmpeg-core
|
- name: Build ffmpeg-core
|
||||||
run: make prd EXTRA_ARGS="--cache-from=type=local,src=build-cache-st --cache-to=type=local,dest=build-cache-st,mode=max"
|
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
|
- name: Upload core
|
||||||
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
|
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: ffmpeg-cores
|
name: ffmpeg-core
|
||||||
path: |
|
path: packages/core/dist/*
|
||||||
packages/core/dist/*
|
build-core-mt:
|
||||||
packages/core-mt/dist/*
|
|
||||||
tests:
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: build-core
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Source Code
|
- name: Checkout Source Code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
- name: Download ffmpeg-cores
|
- name: Setup Docker Buildx
|
||||||
|
id: buildx
|
||||||
|
uses: docker/setup-buildx-action@v2
|
||||||
|
- name: Cache build
|
||||||
|
id: cache-build
|
||||||
|
uses: actions/cache@v3
|
||||||
|
with:
|
||||||
|
path: build-cache-mt
|
||||||
|
|
||||||
|
key: build-cache-mt-v1-${{ hashFiles('Dockerfile', 'Makefile', 'build/*') }}
|
||||||
|
restore-keys: |
|
||||||
|
build-cache-v1-
|
||||||
|
- 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-mt
|
||||||
|
uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: ffmpeg-core-mt
|
||||||
|
path: packages/core-mt/dist/*
|
||||||
|
tests:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
needs:
|
||||||
|
- build-core
|
||||||
|
- build-core-mt
|
||||||
|
steps:
|
||||||
|
- name: Checkout Source Code
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
- name: Download ffmpeg-core
|
||||||
uses: actions/download-artifact@v3
|
uses: actions/download-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: ffmpeg-cores
|
name: ffmpeg-core
|
||||||
|
path: packages
|
||||||
|
- name: Download ffmpeg-core-mt
|
||||||
|
uses: actions/download-artifact@v3
|
||||||
|
with:
|
||||||
|
name: ffmpeg-core-mt
|
||||||
path: packages
|
path: packages
|
||||||
- name: Use Node.js 16
|
- name: Use Node.js 16
|
||||||
uses: actions/setup-node@v3
|
uses: actions/setup-node@v3
|
||||||
|
Loading…
Reference in New Issue
Block a user