-
Notifications
You must be signed in to change notification settings - Fork 324
52 lines (44 loc) · 1.5 KB
/
build-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
name: build-test-linux-on-push
on: [push, pull_request]
jobs:
python:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics
build-cmake:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- name: Build C/C++ with CMake
env:
DEBIAN_FRONTEND: noninteractive
run: |
sudo sed -i '/^#\sdeb-src /s/^#//' "/etc/apt/sources.list"
sudo apt-get -qq update
sudo apt-get -yqq build-dep mlt
sudo apt-get -yqq install cmake ninja-build kwalify
cmake -D CMAKE_BUILD_TYPE=Debug -D BUILD_TESTING=ON -D SWIG_PYTHON=ON -S . -B build -G Ninja
cmake --build build
sudo cmake --install build
- name: Run tests
env:
DEBIAN_FRONTEND: noninteractive
LD_LIBRARY_PATH: /usr/local/lib
run: |
sudo locale-gen de_DE.UTF-8
cd build && ctest --output-on-failure