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