Update Digital Platform 42°E #1459
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: SonarCloud | |
on: | |
push: | |
branches: [ 7.3, master ] | |
pull_request: | |
types: [opened, synchronize, reopened] | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-22.04 | |
env: | |
SONAR_SCANNER_VERSION: 4.7.0.2747 | |
SONAR_SERVER_URL: "https://sonarcloud.io" | |
BUILD_WRAPPER_OUT_DIR: build_wrapper_output_directory # Directory where build-wrapper output will be placed | |
steps: | |
- name: Install libraries | |
run: | | |
sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test | |
sudo apt-get -q update | |
sudo apt remove -y libunwind-14-dev | |
sudo apt-get install g++-11 | |
sudo apt-get install linux-libc-dev | |
sudo apt-get install git | |
sudo apt-get install build-essential | |
sudo apt-get install automake | |
sudo apt-get install libtool | |
sudo apt-get install python3.10-dev | |
sudo apt-get install zlib1g-dev | |
sudo apt-get install gettext | |
sudo apt-get install swig | |
sudo apt-get install libgstreamer1.0-dev | |
sudo apt-get install libgstreamer-plugins-base1.0-dev | |
sudo apt-get install libfreetype6-dev | |
sudo apt-get install libsigc++-2.0-dev | |
sudo apt-get install libfribidi-dev | |
sudo apt-get install libssl-dev | |
sudo apt-get install libavahi-client-dev | |
sudo apt-get install libjpeg-turbo8-dev | |
sudo apt-get install libgif-dev | |
sudo apt-get install libcurl4-openssl-dev | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis | |
- name: Install sonar-scanner and build-wrapper | |
uses: SonarSource/sonarcloud-github-c-cpp@v1 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3.11' | |
- name: Build enigma2 dependencies | |
env: | |
CC: "gcc-11" | |
CXX: "g++-11" | |
run: | | |
echo "installing libdvbsi++" | |
pushd . | |
cd /tmp | |
git clone --depth 1 https://github.com/oe-alliance/libdvbsi.git | |
cd libdvbsi | |
autoreconf -i | |
./configure | |
make | |
sudo make install | |
popd | |
echo "installing tuxbox" | |
pushd . | |
cd /tmp | |
git clone --depth 1 https://github.com/OpenPLi/tuxtxt.git | |
cd tuxtxt/libtuxtxt | |
autoreconf -i | |
./configure --with-boxtype=generic DVB_API_VERSION=5 | |
make | |
sudo make install | |
cd ../tuxtxt | |
autoreconf -i | |
./configure --with-boxtype=generic DVB_API_VERSION=5 | |
make | |
sudo make install | |
popd | |
- name: Run build-wrapper | |
env: | |
CC: "gcc-11" | |
CXX: "g++-11" | |
run: | | |
sed -i 's/include lib main data po tools/include lib main tools/g' Makefile.am | |
autoreconf -i | |
./configure --with-libsdl=no --with-boxtype=nobox --enable-dependency-tracking ac_cv_prog_c_openmp=-fopenmp --with-gstversion=1.0 --with-textlcd | |
build-wrapper-linux-x86-64 --out-dir ${{ env.BUILD_WRAPPER_OUT_DIR }} make | |
- name: Run sonar-scanner | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | |
run: | | |
sonar-scanner --define sonar.cfamily.build-wrapper-output="${{ env.BUILD_WRAPPER_OUT_DIR }}" |