-
Notifications
You must be signed in to change notification settings - Fork 71
56 lines (48 loc) · 1.42 KB
/
linux.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: Build LPMS in Linux
on:
pull_request:
push:
branches:
- master
jobs:
build:
runs-on: linux-amd64
steps:
- name: Checkout
uses: actions/checkout@v2
with:
# Needed for commands that depend on git tags
fetch-depth: 0
ref: ${{ github.event.pull_request.head.sha }}
- name: Get the latest install_ffmpeg.sh from go-livepeer
run: |
rm install_ffmpeg.sh || true
curl -LO https://raw.githubusercontent.com/livepeer/go-livepeer/master/install_ffmpeg.sh
- name: Cache packages
uses: actions/cache@v2
id: cache-packages
with:
path: |
/home/devops/nasm-2.14.02
/home/devops/x264
/home/devops/x265
/home/devops/libvpx
/home/devops/ffmpeg
/home/devops/compiled
key: ffmpeg-cache-v1-${{ hashFiles('**/install_ffmpeg.sh') }}
- name: Install ffmpeg
if: steps.cache-packages.outputs.cache-hit != 'true'
run: |
bash ./install_ffmpeg.sh
- name: Build LPMS
shell: bash
run: |
go get ./cmd/example
echo "PKG_CONFIG_PATH: $PKG_CONFIG_PATH"
echo "LD_LIBRARY_PATH: $LD_LIBRARY_PATH"
go build cmd/example/*.go
- name: Download ML model
run: |
curl -L https://github.com/livepeer/livepeer-ml/releases/latest/download/tasmodel.pb --output ./ffmpeg/tasmodel.pb
- name: Test
run: bash ./test.sh