Skip to content

Finally fix CI module case and invoke deletion of ecm.info file when no encrypted channels is present #4351

Finally fix CI module case and invoke deletion of ecm.info file when no encrypted channels is present

Finally fix CI module case and invoke deletion of ecm.info file when no encrypted channels is present #4351

Workflow file for this run

name: SonarCloud
on:
push:
branches: [ master ]
pull_request:
types: [opened, synchronize, reopened]
jobs:
build:
name: Build and Analyze
runs-on: ubuntu-24.04
container:
image: ghcr.io/openatv/enigma2-buildenv/enigma2-buildenv:latest
options: --user root
env:
BUILD_WRAPPER_OUT_DIR: build_wrapper_output_directory
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-python@v5
with:
python-version: '3.13'
- name: Install Build Wrapper
uses: SonarSource/sonarqube-scan-action/install-build-wrapper@v6
- name: Run Build Wrapper
env:
CC: "gcc-14"
CXX: "g++-14"
run: |
sed -i 's/include lib main data po tools/include lib main tools/g' Makefile.am
autoreconf -i
export LIBS="-L/usr/lib/x86_64-linux-gnu -lpython3.13"
export CPPFLAGS="-I/usr/include/python3.13"
./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
# Clean build mit Build Wrapper
build-wrapper-linux-x86-64 --out-dir "${BUILD_WRAPPER_OUT_DIR}" make
- name: SonarCloud Scan
uses: SonarSource/sonarqube-scan-action@v6
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
args: >
--define "sonar.cfamily.compile-commands=${{ env.BUILD_WRAPPER_OUT_DIR }}/compile_commands.json"
-Dsonar.verbose=true