@@ -3,91 +3,91 @@ name: CI
33on :
44 push :
55 branches :
6- - main
6+ - main
77 pull_request :
8- branches :
9- - main
8+ branches :
9+ - main
1010
1111jobs :
1212 build-core :
1313 runs-on : ubuntu-latest
1414 steps :
15- - name : Checkout Source Code
16- uses : actions/checkout@v2
17- - name : Update pkg-config database
18- run : sudo ldconfig
19- - name : Setup Docker Buildx
20- id : buildx
21- uses : docker/setup-buildx-action@v2
22- - name : Cache build
23- id : cache-build
24- uses : actions/cache@v2
25- with :
26- path : build-cache-st
27- key : build-cache-st-v1-${{ hashFiles('Dockerfile', 'Makefile', 'build/*') }}
28- restore-keys : |
29- build-cache-st-v1-
30- - name : Build ffmpeg-core
31- run : make prd EXTRA_ARGS="--cache-from=type=local,src=build-cache-st --cache-to=type=local,dest=build-cache-st,mode=max"
32- - name : Upload core
33- uses : actions/upload-artifact@v2
34- with :
35- name : ffmpeg-core
36- path : packages/core/dist/*
15+ - name : Checkout Source Code
16+ uses : actions/checkout@v2
17+ - name : Update pkg-config database
18+ run : sudo ldconfig
19+ - name : Setup Docker Buildx
20+ id : buildx
21+ uses : docker/setup-buildx-action@v2
22+ - name : Cache build
23+ id : cache-build
24+ uses : actions/cache@v2
25+ with :
26+ path : build-cache-st
27+ key : build-cache-st-v1-${{ hashFiles('Dockerfile', 'Makefile', 'build/*') }}
28+ restore-keys : |
29+ build-cache-st-v1-
30+ - name : Build ffmpeg-core
31+ run : make prd EXTRA_ARGS="--cache-from=type=local,src=build-cache-st --cache-to=type=local,dest=build-cache-st,mode=max"
32+ - name : Upload core
33+ uses : actions/upload-artifact@v4
34+ with :
35+ name : ffmpeg-core
36+ path : packages/core/dist/*
3737 build-core-mt :
3838 runs-on : ubuntu-latest
3939 steps :
40- - name : Checkout Source Code
41- uses : actions/checkout@v2
42- - name : Setup Docker Buildx
43- id : buildx
44- uses : docker/setup-buildx-action@v2
45- - name : Cache build
46- id : cache-build
47- uses : actions/cache@v2
48- with :
49- path : build-cache-mt
50- key : build-cache-mt-v1-${{ hashFiles('Dockerfile', 'Makefile', 'build/*') }}
51- restore-keys : |
52- build-cache-v1-
53- - name : Build ffmpet-core-mt
54- run : make prd-mt EXTRA_ARGS="--cache-from=type=local,src=build-cache-mt --cache-to=type=local,dest=build-cache-mt,mode=max"
55- - name : Upload core-mt
56- uses : actions/upload-artifact@v2
57- with :
58- name : ffmpeg-core-mt
59- path : packages/core-mt/dist/*
40+ - name : Checkout Source Code
41+ uses : actions/checkout@v2
42+ - name : Setup Docker Buildx
43+ id : buildx
44+ uses : docker/setup-buildx-action@v2
45+ - name : Cache build
46+ id : cache-build
47+ uses : actions/cache@v2
48+ with :
49+ path : build-cache-mt
50+ key : build-cache-mt-v1-${{ hashFiles('Dockerfile', 'Makefile', 'build/*') }}
51+ restore-keys : |
52+ build-cache-v1-
53+ - name : Build ffmpet-core-mt
54+ run : make prd-mt EXTRA_ARGS="--cache-from=type=local,src=build-cache-mt --cache-to=type=local,dest=build-cache-mt,mode=max"
55+ - name : Upload core-mt
56+ uses : actions/upload-artifact@v4
57+ with :
58+ name : ffmpeg-core-mt
59+ path : packages/core-mt/dist/*
6060 tests :
6161 runs-on : ubuntu-latest
6262 needs :
6363 - build-core
6464 - build-core-mt
6565 steps :
66- - name : Checkout Source Code
67- uses : actions/checkout@v2
68- - name : Download ffmpeg-core
69- uses : actions/download-artifact@v2
70- with :
71- name : ffmpeg-core
72- path : packages/core/dist
73- - name : Download ffmpeg-core-mt
74- uses : actions/download-artifact@v2
75- with :
76- name : ffmpeg-core-mt
77- path : packages/core-mt/dist
78- - name : Use Node.js 18
79- uses : actions/setup-node@v2
80- with :
81- node-version : 18.x
82- - name : Cache dependencies
83- id : cache-dependencies
84- uses : actions/cache@v2
85- with :
86- path : node_modules
87- key : node-modules-${{ hashFiles('package-lock.json') }}
88- restore-keys : |
89- node-modules-
90- - name : Install dependencies
91- run : npm install
92- - name : Run tests
93- run : npm test
66+ - name : Checkout Source Code
67+ uses : actions/checkout@v2
68+ - name : Download ffmpeg-core
69+ uses : actions/download-artifact@v4
70+ with :
71+ name : ffmpeg-core
72+ path : packages/core/dist
73+ - name : Download ffmpeg-core-mt
74+ uses : actions/download-artifact@v4
75+ with :
76+ name : ffmpeg-core-mt
77+ path : packages/core-mt/dist
78+ - name : Use Node.js 18
79+ uses : actions/setup-node@v2
80+ with :
81+ node-version : 18.x
82+ - name : Cache dependencies
83+ id : cache-dependencies
84+ uses : actions/cache@v2
85+ with :
86+ path : node_modules
87+ key : node-modules-${{ hashFiles('package-lock.json') }}
88+ restore-keys : |
89+ node-modules-
90+ - name : Install dependencies
91+ run : npm install
92+ - name : Run tests
93+ run : npm test
0 commit comments