|
8 | 8 | build: |
9 | 9 | name: Build |
10 | 10 | runs-on: ubuntu-24.04 |
| 11 | + container: |
| 12 | + image: ghcr.io/openatv/enigma2-buildenv/enigma2-buildenv:latest |
| 13 | + options: --user root |
11 | 14 | env: |
12 | 15 | # SONAR_SCANNER_VERSION: 4.7.0.2747 |
13 | 16 | # SONAR_SERVER_URL: "https://sonarcloud.io" |
14 | 17 | BUILD_WRAPPER_OUT_DIR: build_wrapper_output_directory # Directory where build-wrapper output will be placed |
15 | 18 | steps: |
16 | | - - name: Install libraries |
17 | | - run: | |
18 | | - sudo apt-get -q update |
19 | | - for i in {1..5}; do |
20 | | - sudo add-apt-repository -y ppa:deadsnakes/ppa && break || sleep 10 |
21 | | - done |
22 | | - sudo apt remove -y libunwind-14-dev |
23 | | - sudo apt-get install g++-14 |
24 | | - sudo apt-get install linux-libc-dev |
25 | | - sudo apt-get install git |
26 | | - sudo apt-get install build-essential |
27 | | - sudo apt-get install automake |
28 | | - sudo apt-get install libtool |
29 | | - sudo apt-get install python3.13-dev |
30 | | - sudo apt-get install zlib1g-dev |
31 | | - sudo apt-get install gettext |
32 | | - sudo apt-get install swig |
33 | | - sudo apt-get install libgstreamer1.0-dev |
34 | | - sudo apt-get install libgstreamer-plugins-base1.0-dev |
35 | | - sudo apt-get install libfreetype6-dev |
36 | | - sudo apt-get install libfribidi-dev |
37 | | - sudo apt-get install libavahi-client-dev |
38 | | - sudo apt-get install libjpeg-turbo8-dev |
39 | | - sudo apt-get install libgif-dev |
40 | | - sudo apt-get install libcurl4-openssl-dev |
41 | | - sudo apt-get install mm-common |
42 | | -
|
43 | 19 | - uses: actions/checkout@v4 |
44 | 20 | with: |
45 | 21 | fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis |
|
50 | 26 | - uses: actions/setup-python@v5 |
51 | 27 | with: |
52 | 28 | python-version: '3.13' |
53 | | - |
54 | | - - name: Build enigma2 dependencies |
55 | | - env: |
56 | | - CC: "gcc-14" |
57 | | - CXX: "g++-14" |
58 | | - run: | |
59 | | - echo "installing libdvbsi++" |
60 | | - pushd . |
61 | | - cd /tmp |
62 | | - git clone --depth 1 https://github.com/oe-alliance/libdvbsi.git |
63 | | - cd libdvbsi |
64 | | - autoreconf -i |
65 | | - ./configure |
66 | | - make |
67 | | - sudo make install |
68 | | - popd |
69 | | - echo "installing libsigc++-3" |
70 | | - pushd . |
71 | | - cd /tmp |
72 | | - git clone --depth 1 https://github.com/TwolDE2/libsigc--3.0.git |
73 | | - cd libsigc--3.0 |
74 | | - autoreconf -i |
75 | | - ./configure |
76 | | - make |
77 | | - sudo make install |
78 | | - popd |
79 | | - echo "installing tuxbox" |
80 | | - pushd . |
81 | | - cd /tmp |
82 | | - git clone --depth 1 https://github.com/oe-alliance/tuxtxt.git |
83 | | - cd tuxtxt/libtuxtxt |
84 | | - autoreconf -i |
85 | | - ./configure --with-boxtype=generic DVB_API_VERSION=5 |
86 | | - make |
87 | | - sudo make install |
88 | | - cd ../tuxtxt |
89 | | - autoreconf -i |
90 | | - ./configure --with-boxtype=generic DVB_API_VERSION=5 |
91 | | - make |
92 | | - sudo make install |
93 | | - popd |
94 | 29 |
|
95 | 30 | - name: Install sonar-scanner and build-wrapper |
96 | 31 | uses: SonarSource/sonarcloud-github-c-cpp@v2 |
|
101 | 36 | run: | |
102 | 37 | sed -i 's/include lib main data po tools/include lib main tools/g' Makefile.am |
103 | 38 | autoreconf -i |
104 | | - ./configure --with-libsdl=no --with-boxtype=nobox --enable-dependency-tracking ac_cv_prog_c_openmp=-fopenmp --with-gstversion=1.0 --with-textlcd |
| 39 | + export LIBS="-L/usr/lib/x86_64-linux-gnu -lpython3.13" |
| 40 | + export CPPFLAGS="-I/usr/include/python3.13" |
| 41 | + ./configure PYTHON=python3.13 --with-libsdl=no --with-boxtype=nobox --enable-dependency-tracking ac_cv_prog_c_openmp=-fopenmp --with-gstversion=1.0 --with-textlcd |
105 | 42 | build-wrapper-linux-x86-64 --out-dir ${{ env.BUILD_WRAPPER_OUT_DIR }} make |
106 | 43 |
|
107 | 44 | - name: Run sonar-scanner |
|
0 commit comments