77 pull_request :
88 branches : [ master ]
99
10- env :
11- DOCKER_BUILDKIT : 1
12- DOCKER_CLI_EXPERIMENTAL : enabled
13-
1410jobs :
1511 build-linux :
1612 name : native build in linux
1713 runs-on : ubuntu-20.04
1814 steps :
1915 - name : Checkout code
2016 uses : actions/checkout@v2
17+
2118 - name : build ffmpeg
2219 run : |
2320 while sleep 300; do echo "=====[ $SECONDS seconds still running ]====="; done &
2421 SKIPINSTALL=yes VERBOSE=yes ./build-ffmpeg --build
2522 kill %1
23+
2624 - name : clean up
2725 run : |
2826 ./build-ffmpeg --cleanup
@@ -33,11 +31,13 @@ jobs:
3331 steps :
3432 - name : Checkout code
3533 uses : actions/checkout@v2
34+
3635 - name : build ffmpeg
3736 run : |
3837 while sleep 300; do echo "=====[ $SECONDS seconds still running ]====="; done &
3938 SKIPINSTALL=yes VERBOSE=yes ./build-ffmpeg --build
4039 kill %1
40+
4141 - name : clean up
4242 run : |
4343 ./build-ffmpeg --cleanup
4848 steps :
4949 - name : Checkout code
5050 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+
5162 - name : build ffmpeg
5263 run : |
5364 docker build -t ffmpeg:ubuntu -f Dockerfile .
65+
66+ - name : test run ffmepg
67+ run : |
5468 docker run --rm ffmpeg:ubuntu
5569
5670 build-cuda-docker :
5973 steps :
6074 - name : Checkout code
6175 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+
6287 - name : build ffmpeg
6388 run : |
6489 docker build -t ffmpeg:cuda -f cuda-ubuntu.dockerfile .
90+
91+ - name : test run ffmepg
92+ run : |
6593 docker run --rm ffmpeg:cuda
0 commit comments