Skip to content
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

just try a windows build #1

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft
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
190 changes: 105 additions & 85 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ on:
push:
paths-ignore:
- '*.md'
pull_request:
branches: [ master ]
# pull_request:
# branches: [ master ]

jobs:
build-linux:
Expand Down Expand Up @@ -37,7 +37,7 @@ jobs:

build-macos:
name: build in native macOS
runs-on: macos-10.15
runs-on: macos-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
Expand All @@ -57,94 +57,114 @@ jobs:
run: |
./build-ffmpeg --cleanup

build-docker:
name: build in docker
runs-on: ubuntu-20.04
build-windows:
name: build in native Windows
runs-on: windows-latest
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 .
shell: /bin/bash
run: ./build-ffmpeg --build
env:
SKIPINSTALL: 'yes'
VERBOSE: 'yes'
- 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
./workspace/bin/ffmpeg -buildconf
- name: clean up
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
./build-ffmpeg --cleanup

- 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