Skip to content

Shared libraries (targeting macOS 10.11) #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 20 commits into from
Dec 7, 2020
Merged
Show file tree
Hide file tree
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
282 changes: 142 additions & 140 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,147 +4,149 @@ on:
push:
paths-ignore:
- '*.md'
pull_request:
branches: [ master ]

jobs:
build-linux:
name: build in native linux
runs-on: ubuntu-20.04
steps:
- name: Checkout code
uses: actions/checkout@v2
# build-linux:
# name: build in native linux
# runs-on: ubuntu-20.04
# steps:
# - name: Checkout code
# uses: actions/checkout@v2
#
# - name: install libva-dev
# run: |
# sudo apt-get update
# sudo apt-get install -y libva-dev
#
# - name: build ffmpeg
# run: |
# while sleep 300; do echo "=====[ $SECONDS seconds still running ]====="; done &
# SKIPINSTALL=yes VERBOSE=yes ./build-ffmpeg --build
# kill %1
# - name: check shared library
# run: |
# ldd ./workspace/bin/ffmpeg
# - name: test run ffmepg
# run: |
# ./workspace/bin/ffmpeg -buildconf
# - name: clean up
# run: |
# ./build-ffmpeg --cleanup

- name: install libva-dev
run: |
sudo apt-get update
sudo apt-get install -y libva-dev
# build-macos:
# name: build in native macOS
# runs-on: macos-10.15
# steps:
# - name: Checkout code
# uses: actions/checkout@v2
#
# - name: Use nodejs
# uses: actions/setup-node@v1
#
# - name: build ffmpeg
# run: |
# while sleep 300; do echo "=====[ $SECONDS seconds still running ]====="; done &
# SKIPINSTALL=yes VERBOSE=yes ./build-ffmpeg --build
# kill %1
# - name: check shared library
# run: |
# otool -L ./workspace/bin/ffmpeg
# - name: test run ffmepg
# run: |
# ./workspace/bin/ffmpeg -buildconf
# - name: clean up
# run: |
# ./build-ffmpeg --cleanup

- name: build ffmpeg
run: |
while sleep 300; do echo "=====[ $SECONDS seconds still running ]====="; done &
SKIPINSTALL=yes VERBOSE=yes ./build-ffmpeg --build
kill %1
- name: check shared library
run: |
ldd ./workspace/bin/ffmpeg
- name: test run ffmepg
run: |
./workspace/bin/ffmpeg -buildconf
- name: clean up
run: |
./build-ffmpeg --cleanup

build-macos:
name: build in native macOS
runs-on: macos-10.15
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: check shared library
run: |
otool -L ./workspace/bin/ffmpeg
- name: test run ffmepg
run: |
./workspace/bin/ffmpeg -buildconf
- name: clean up
run: |
./build-ffmpeg --cleanup

build-docker:
name: build in docker
runs-on: ubuntu-20.04
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 -buildconf

build-cuda-ubuntu-docker:
name: build in ubuntu docker with cuda
runs-on: ubuntu-20.04
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
docker pull ubuntu:20.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
docker pull ubuntu:20.04
- name: build ffmpeg
run: |
docker build -t ffmpeg:cuda-ubuntu -f cuda-ubuntu.dockerfile .
- name: test run ffmepg
run: |
docker run --rm ffmpeg:cuda-ubuntu -buildconf

build-cuda-centos-docker:
name: build in centos docker with cuda
runs-on: ubuntu-20.04
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: pull base image
id: cuda_centos_pull
run: |
docker pull nvidia/cuda:11.1-devel-centos8
docker pull centos:8
- name: run if cuda_centos_pull failed
if: failure() && steps.cuda_centos_pull.outcome == 'failure'
run: |
docker pull nvidia/cuda:11.1-devel-centos8
docker pull centos:8
- name: build ffmpeg
run: |
docker build -t ffmpeg:cuda-centos -f cuda-centos.dockerfile .
- name: test run ffmepg
run: |
docker run --rm ffmpeg:cuda-centos -buildconf

build-full-static:
name: full static build in docker
runs-on: ubuntu-20.04
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-static -f full-static.dockerfile .
- name: test run ffmepg
run: |
docker run --rm ffmpeg:cuda-static -buildconf
#
# build-docker:
# name: build in docker
# runs-on: ubuntu-20.04
# 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 -buildconf
#
# build-cuda-ubuntu-docker:
# name: build in ubuntu docker with cuda
# runs-on: ubuntu-20.04
# 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
# docker pull ubuntu:20.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
# docker pull ubuntu:20.04
# - name: build ffmpeg
# run: |
# docker build -t ffmpeg:cuda-ubuntu -f cuda-ubuntu.dockerfile .
# - name: test run ffmepg
# run: |
# docker run --rm ffmpeg:cuda-ubuntu -buildconf
#
# build-cuda-centos-docker:
# name: build in centos docker with cuda
# runs-on: ubuntu-20.04
# steps:
# - name: Checkout code
# uses: actions/checkout@v2
#
# - name: pull base image
# id: cuda_centos_pull
# run: |
# docker pull nvidia/cuda:11.1-devel-centos8
# docker pull centos:8
# - name: run if cuda_centos_pull failed
# if: failure() && steps.cuda_centos_pull.outcome == 'failure'
# run: |
# docker pull nvidia/cuda:11.1-devel-centos8
# docker pull centos:8
# - name: build ffmpeg
# run: |
# docker build -t ffmpeg:cuda-centos -f cuda-centos.dockerfile .
# - name: test run ffmepg
# run: |
# docker run --rm ffmpeg:cuda-centos -buildconf
#
# build-full-static:
# name: full static build in docker
# runs-on: ubuntu-20.04
# 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-static -f full-static.dockerfile .
# - name: test run ffmepg
# run: |
# docker run --rm ffmpeg:cuda-static -buildconf
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ workspace
.idea
linux
.artifacts
.DS_Store
1 change: 1 addition & 0 deletions .node-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
12.18.3
Loading