Skip to content

Commit 77f2c47

Browse files
Merge pull request #8 from markus-perl/master
Sync from upstream
2 parents 7991ba6 + fec153d commit 77f2c47

9 files changed

+1461
-678
lines changed

.github/workflows/build.yml

Lines changed: 20 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ on:
1010
jobs:
1111
build-linux:
1212
name: build in native linux
13-
runs-on: ubuntu-20.04
13+
runs-on: ubuntu-22.04
1414
steps:
1515
- name: Checkout code
16-
uses: actions/checkout@v2
16+
uses: actions/checkout@v4
1717

1818
- name: install libva-dev
1919
run: |
@@ -37,15 +37,15 @@ jobs:
3737
3838
build-macos:
3939
name: build in native macOS
40-
runs-on: macos-10.15
40+
runs-on: macos-latest
4141
steps:
4242
- name: Checkout code
43-
uses: actions/checkout@v2
43+
uses: actions/checkout@v4
4444

4545
- name: build ffmpeg
4646
run: |
4747
while sleep 300; do echo "=====[ $SECONDS seconds still running ]====="; done &
48-
SKIPINSTALL=yes VERBOSE=yes ./build-ffmpeg --build --enable-gpl-and-non-free
48+
SKIPINSTALL=yes VERBOSE=yes SKIPRAV1E=yes ./build-ffmpeg --build --enable-gpl-and-non-free
4949
kill %1
5050
- name: check shared library
5151
run: |
@@ -59,19 +59,19 @@ jobs:
5959
6060
build-docker:
6161
name: build in docker
62-
runs-on: ubuntu-20.04
62+
runs-on: ubuntu-22.04
6363
steps:
6464
- name: Checkout code
65-
uses: actions/checkout@v2
65+
uses: actions/checkout@v4
6666

6767
- name: pull base image
6868
id: ubuntu_pull
6969
run: |
70-
docker pull ubuntu:20.04
70+
docker pull ubuntu:22.04
7171
- name: run if ubuntu_pull failed
7272
if: failure() && steps.ubuntu_pull.outcome == 'failure'
7373
run: |
74-
docker pull ubuntu:20.04
74+
docker pull ubuntu:22.04
7575
- name: build ffmpeg
7676
run: |
7777
docker build -t ffmpeg:ubuntu -f Dockerfile .
@@ -81,70 +81,46 @@ jobs:
8181
8282
build-cuda-ubuntu-docker:
8383
name: build in ubuntu docker with cuda
84-
runs-on: ubuntu-20.04
84+
runs-on: ubuntu-22.04
8585
steps:
8686
- name: Checkout code
87-
uses: actions/checkout@v2
87+
uses: actions/checkout@v4
8888

8989
- name: pull base image
9090
id: cuda_ubuntu_pull
9191
run: |
92-
docker pull nvidia/cuda:11.4.2-devel-ubuntu20.04
93-
docker pull ubuntu:20.04
92+
docker pull nvidia/cuda:11.8.0-devel-ubuntu22.04
93+
docker pull ubuntu:22.04
9494
- name: run if cuda_ubuntu_pull failed
9595
if: failure() && steps.cuda_ubuntu_pull.outcome == 'failure'
9696
run: |
97-
docker pull nvidia/cuda:11.4.2-devel-ubuntu20.04
98-
docker pull ubuntu:20.04
97+
docker pull nvidia/cuda:11.8.0-devel-ubuntu22.04
98+
docker pull ubuntu:22.04
9999
- name: build ffmpeg
100100
run: |
101101
docker build -t ffmpeg:cuda-ubuntu -f cuda-ubuntu.dockerfile .
102102
- name: test run ffmepg
103103
run: |
104104
docker run --rm ffmpeg:cuda-ubuntu -buildconf
105105
106-
build-cuda-centos-docker:
107-
name: build in centos docker with cuda
108-
runs-on: ubuntu-20.04
109-
steps:
110-
- name: Checkout code
111-
uses: actions/checkout@v2
112-
113-
- name: pull base image
114-
id: cuda_centos_pull
115-
run: |
116-
docker pull nvidia/cuda:11.4.2-devel-centos8
117-
docker pull centos:8
118-
- name: run if cuda_centos_pull failed
119-
if: failure() && steps.cuda_centos_pull.outcome == 'failure'
120-
run: |
121-
docker pull nvidia/cuda:11.4.2-devel-centos8
122-
docker pull centos:8
123-
- name: build ffmpeg
124-
run: |
125-
docker build -t ffmpeg:cuda-centos -f cuda-centos.dockerfile .
126-
- name: test run ffmepg
127-
run: |
128-
docker run --rm ffmpeg:cuda-centos -buildconf
129-
130106
build-full-static:
131107
name: full static build in docker
132-
runs-on: ubuntu-20.04
108+
runs-on: ubuntu-22.04
133109
steps:
134110
- name: Checkout code
135-
uses: actions/checkout@v2
111+
uses: actions/checkout@v4
136112

137113
- name: pull base image
138114
id: cuda_ubuntu_pull
139115
run: |
140-
docker pull nvidia/cuda:11.4.2-devel-ubuntu20.04
116+
docker pull nvidia/cuda:11.8.0-devel-ubuntu22.04
141117
- name: run if cuda_ubuntu_pull failed
142118
if: failure() && steps.cuda_ubuntu_pull.outcome == 'failure'
143119
run: |
144-
docker pull nvidia/cuda:11.4.2-devel-ubuntu20.04
120+
docker pull nvidia/cuda:11.8.0-devel-ubuntu22.04
145121
- name: build ffmpeg
146122
run: |
147123
docker build -t ffmpeg:cuda-static -f full-static.dockerfile .
148124
- name: test run ffmepg
149125
run: |
150-
docker run --rm ffmpeg:cuda-static -buildconf
126+
docker run --rm ffmpeg:cuda-static -buildconf

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ workspace
33
.idea
44
linux
55
.artifacts
6+
build

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ubuntu:20.04 AS build
1+
FROM ubuntu:22.04 AS build
22

33
ENV DEBIAN_FRONTEND noninteractive
44

@@ -13,7 +13,7 @@ COPY ./build-ffmpeg /app/build-ffmpeg
1313

1414
RUN SKIPINSTALL=yes /app/build-ffmpeg --build
1515

16-
FROM ubuntu:20.04
16+
FROM ubuntu:22.04
1717

1818
ENV DEBIAN_FRONTEND noninteractive
1919

0 commit comments

Comments
 (0)