Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 32 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,20 @@ on:
pull_request:
branches: [ master ]

env:
DOCKER_BUILDKIT: 1
DOCKER_CLI_EXPERIMENTAL: enabled

jobs:
build-linux:
name: native build in linux
runs-on: ubuntu-20.04
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: build ffmpeg
run: |
while sleep 300; do echo "=====[ $SECONDS seconds still running ]====="; done &
SKIPINSTALL=yes VERBOSE=yes ./build-ffmpeg --build
kill %1

- name: clean up
run: |
./build-ffmpeg --cleanup
Expand All @@ -33,11 +31,13 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: build ffmpeg
run: |
while sleep 300; do echo "=====[ $SECONDS seconds still running ]====="; done &
SKIPINSTALL=yes VERBOSE=yes ./build-ffmpeg --build
kill %1

- name: clean up
run: |
./build-ffmpeg --cleanup
Expand All @@ -48,9 +48,23 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: pull base image
id: ubuntu_pull
run: |
docker pull ubuntu:20.04

- name: run if ubuntu_pull failed
if: failure() && steps.ubuntu_pull.outcome == 'failure'
run: |
docker pull ubuntu:20.04

- name: build ffmpeg
run: |
docker build -t ffmpeg:ubuntu -f Dockerfile .

- name: test run ffmepg
run: |
docker run --rm ffmpeg:ubuntu

build-cuda-docker:
Expand All @@ -59,7 +73,21 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: pull base image
id: cuda_ubuntu_pull
run: |
docker pull nvidia/cuda:11.1-devel-ubuntu20.04

- name: run if cuda_ubuntu_pull failed
if: failure() && steps.cuda_ubuntu_pull.outcome == 'failure'
run: |
docker pull nvidia/cuda:11.1-devel-ubuntu20.04

- name: build ffmpeg
run: |
docker build -t ffmpeg:cuda -f cuda-ubuntu.dockerfile .

- name: test run ffmepg
run: |
docker run --rm ffmpeg:cuda