-
Notifications
You must be signed in to change notification settings - Fork 45
41 lines (34 loc) · 1006 Bytes
/
pr-test.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
name: gstcefsrc pull request test
on:
pull_request:
branches: [master]
jobs:
build:
name: Run gstcefsrc tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Get latest CMake
uses: lukka/get-cmake@latest
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install --yes libunwind-dev
sudo apt-get install --yes libgstreamer1.0-0 libgstreamer-plugins-base1.0-dev
- name: Cache
id: cache-cmake
uses: actions/cache@v2
with:
path: |
build/
third_party/
key: ${{ hashFiles('cmake/DownloadCEF.cmake') }}-${{ hashFiles('CMakeLists.txt') }}-cache
- name: cmake
if: steps.cache-cmake.outputs.cache-hit != 'true'
run: |
mkdir -p build && cd build
cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release ..
- name: make
run: |
cd build
make -j