File: build-linux.yml

package info (click to toggle)
mlt 7.36.1-1
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 14,648 kB
  • sloc: cpp: 87,247; ansic: 79,634; python: 504; asm: 311; sh: 221; ruby: 197; javascript: 90; makefile: 45; perl: 33; java: 29; cs: 19; php: 18; tcl: 15
file content (53 lines) | stat: -rw-r--r-- 1,617 bytes parent folder | download
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
name: build-test-linux-on-push

on: [push, pull_request]

jobs:
  python:
    runs-on: ubuntu-latest
    strategy:
      matrix:
        python-version: ['3.8', '3.9', '3.10', '3.11']
    steps:
      - uses: actions/checkout@v4

      - name: Set up Python ${{ matrix.python-version }}
        uses: actions/setup-python@v5
        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@v4

      - 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 qt6-base-dev libqt6svg6-dev libqt6core5compat6-dev
          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