Skip to content

Commit 46559dc

Browse files
authored
Add GitHub Actions
1 parent a644987 commit 46559dc

File tree

1 file changed

+65
-0
lines changed

1 file changed

+65
-0
lines changed

.github/workflows/build.yml

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
name: build test
2+
3+
on:
4+
push:
5+
paths-ignore:
6+
- '*.md'
7+
pull_request:
8+
branches: [ master ]
9+
10+
env:
11+
DOCKER_BUILDKIT: 1
12+
DOCKER_CLI_EXPERIMENTAL: enabled
13+
14+
jobs:
15+
build-linux:
16+
name: native build in linux
17+
runs-on: ubuntu-20.04
18+
steps:
19+
- name: Checkout code
20+
uses: actions/checkout@v2
21+
- name: build ffmpeg
22+
run: |
23+
while sleep 300; do echo "=====[ $SECONDS seconds still running ]====="; done &
24+
SKIPINSTALL=yes VERBOSE=yes ./build-ffmpeg --build
25+
kill %1
26+
- name: clean up
27+
run: |
28+
./build-ffmpeg --cleanup
29+
30+
build-macos:
31+
name: native build in macos
32+
runs-on: macos-10.15
33+
steps:
34+
- name: Checkout code
35+
uses: actions/checkout@v2
36+
- name: build ffmpeg
37+
run: |
38+
while sleep 300; do echo "=====[ $SECONDS seconds still running ]====="; done &
39+
SKIPINSTALL=yes VERBOSE=yes ./build-ffmpeg --build
40+
kill %1
41+
- name: clean up
42+
run: |
43+
./build-ffmpeg --cleanup
44+
45+
build-docker:
46+
name: build in docker
47+
runs-on: ubuntu-20.04
48+
steps:
49+
- name: Checkout code
50+
uses: actions/checkout@v2
51+
- name: build ffmpeg
52+
run: |
53+
docker build -t ffmpeg:ubuntu -f Dockerfile .
54+
docker run --rm ffmpeg:ubuntu
55+
56+
build-cuda-docker:
57+
name: build in docker with cuda
58+
runs-on: ubuntu-20.04
59+
steps:
60+
- name: Checkout code
61+
uses: actions/checkout@v2
62+
- name: build ffmpeg
63+
run: |
64+
docker build -t ffmpeg:cuda -f cuda-ubuntu.dockerfile .
65+
docker run --rm ffmpeg:cuda

0 commit comments

Comments
 (0)