@@ -3,10 +3,10 @@ name: CI
3
3
on :
4
4
push :
5
5
branches :
6
- - main
6
+ - master
7
7
pull_request :
8
- branches :
9
- - main
8
+ branches :
9
+ - master
10
10
11
11
jobs :
12
12
build-core :
21
21
uses : docker/setup-buildx-action@v2
22
22
- name : Cache build
23
23
id : cache-build
24
- uses : actions/cache@v2
24
+ uses : actions/cache@v4
25
25
with :
26
26
path : build-cache-st
27
27
key : build-cache-st-v1-${{ hashFiles('Dockerfile', 'Makefile', 'build/*') }}
30
30
- name : Build ffmpeg-core
31
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
32
- name : Upload core
33
- uses : actions/upload-artifact@v2
33
+ uses : actions/upload-artifact@v4
34
34
with :
35
35
name : ffmpeg-core
36
36
path : packages/core/dist/*
44
44
uses : docker/setup-buildx-action@v2
45
45
- name : Cache build
46
46
id : cache-build
47
- uses : actions/cache@v2
47
+ uses : actions/cache@v4
48
48
with :
49
49
path : build-cache-mt
50
50
key : build-cache-mt-v1-${{ hashFiles('Dockerfile', 'Makefile', 'build/*') }}
53
53
- name : Build ffmpet-core-mt
54
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
55
- name : Upload core-mt
56
- uses : actions/upload-artifact@v2
56
+ uses : actions/upload-artifact@v4
57
57
with :
58
58
name : ffmpeg-core-mt
59
59
path : packages/core-mt/dist/*
@@ -66,12 +66,12 @@ jobs:
66
66
- name : Checkout Source Code
67
67
uses : actions/checkout@v2
68
68
- name : Download ffmpeg-core
69
- uses : actions/download-artifact@v2
69
+ uses : actions/download-artifact@v4
70
70
with :
71
71
name : ffmpeg-core
72
72
path : packages/core/dist
73
73
- name : Download ffmpeg-core-mt
74
- uses : actions/download-artifact@v2
74
+ uses : actions/download-artifact@v4
75
75
with :
76
76
name : ffmpeg-core-mt
77
77
path : packages/core-mt/dist
81
81
node-version : 18.x
82
82
- name : Cache dependencies
83
83
id : cache-dependencies
84
- uses : actions/cache@v2
84
+ uses : actions/cache@v4
85
85
with :
86
86
path : node_modules
87
87
key : node-modules-${{ hashFiles('package-lock.json') }}
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