7
7
pull_request :
8
8
branches : [ master ]
9
9
10
- env :
11
- DOCKER_BUILDKIT : 1
12
- DOCKER_CLI_EXPERIMENTAL : enabled
13
-
14
10
jobs :
15
11
build-linux :
16
12
name : native build in linux
17
13
runs-on : ubuntu-20.04
18
14
steps :
19
15
- name : Checkout code
20
16
uses : actions/checkout@v2
17
+
21
18
- name : build ffmpeg
22
19
run : |
23
20
while sleep 300; do echo "=====[ $SECONDS seconds still running ]====="; done &
24
21
SKIPINSTALL=yes VERBOSE=yes ./build-ffmpeg --build
25
22
kill %1
23
+
26
24
- name : clean up
27
25
run : |
28
26
./build-ffmpeg --cleanup
@@ -33,11 +31,13 @@ jobs:
33
31
steps :
34
32
- name : Checkout code
35
33
uses : actions/checkout@v2
34
+
36
35
- name : build ffmpeg
37
36
run : |
38
37
while sleep 300; do echo "=====[ $SECONDS seconds still running ]====="; done &
39
38
SKIPINSTALL=yes VERBOSE=yes ./build-ffmpeg --build
40
39
kill %1
40
+
41
41
- name : clean up
42
42
run : |
43
43
./build-ffmpeg --cleanup
48
48
steps :
49
49
- name : Checkout code
50
50
uses : actions/checkout@v2
51
+
52
+ - name : pull base image
53
+ id : ubuntu_pull
54
+ run : |
55
+ docker pull ubuntu:20.04
56
+
57
+ - name : run if ubuntu_pull failed
58
+ if : failure() && steps.ubuntu_pull.outcome == 'failure'
59
+ run : |
60
+ docker pull ubuntu:20.04
61
+
51
62
- name : build ffmpeg
52
63
run : |
53
64
docker build -t ffmpeg:ubuntu -f Dockerfile .
65
+
66
+ - name : test run ffmepg
67
+ run : |
54
68
docker run --rm ffmpeg:ubuntu
55
69
56
70
build-cuda-docker :
59
73
steps :
60
74
- name : Checkout code
61
75
uses : actions/checkout@v2
76
+
77
+ - name : pull base image
78
+ id : cuda_ubuntu_pull
79
+ run : |
80
+ docker pull nvidia/cuda:11.1-devel-ubuntu20.04
81
+
82
+ - name : run if cuda_ubuntu_pull failed
83
+ if : failure() && steps.cuda_ubuntu_pull.outcome == 'failure'
84
+ run : |
85
+ docker pull nvidia/cuda:11.1-devel-ubuntu20.04
86
+
62
87
- name : build ffmpeg
63
88
run : |
64
89
docker build -t ffmpeg:cuda -f cuda-ubuntu.dockerfile .
90
+
91
+ - name : test run ffmepg
92
+ run : |
65
93
docker run --rm ffmpeg:cuda
0 commit comments