Skip to content

[ADDITIVE] Update release files #676

[ADDITIVE] Update release files

[ADDITIVE] Update release files #676

Workflow file for this run

name: Code.Analysis
on: [push]
jobs:
test_and_sonar_analysis:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Qt
uses: jurplel/install-qt-action@v2
with:
version: 6.2.4
- name: Setup sonar-scanner
uses: Warchant/setup-sonar-scanner@v3
with:
# Sonar-scanner version
version: 4.2.0.1873
- name: Setup build wrapper for sonar-scanner
run: |
wget https://sonarcloud.io/static/cpp/build-wrapper-linux-x86.zip
unzip build-wrapper-linux-x86
- name: Configure build
run: ./configure
- name: Build sources
run: build-wrapper-linux-x86/build-wrapper-linux-x86-64 --out-dir bw-output make -j4
- name: Install shared libraries
run: |
sudo make -j 4 -C IPXACTmodels install
sudo make -j 4 -C KactusAPI install
sudo bash -c 'echo /usr/lib64/ > /etc/ld.so.conf.d/kactus2.conf; ldconfig'
- name: Build tests
# Build without -j to avoid colliding on compiling objects shared between tests.
run: |
cd tests
qmake test_all.pro
make
- name: Run tests
run : make -C tests check
# - name: Run sonar-scanner
# run: |
# echo 'SONARQUBE_LOGIN=${{ secrets.SONAR_LOGIN }}' >> $GITHUB_ENV
# echo 'GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }}' >> $GITHUB_ENV
# sonar-scanner -Dsonar.cfamily.threads=2 -Dsonar.projectKey=kactus2 -Dsonar.organization="epekkar-github" -Dsonar.host.url="https://sonarcloud.io" -Dsonar.login=${{env.SONARQUBE_LOGIN}}} -Dsonar.language=c++ -Dsonar.cxx.suffixes.sources=.cxx,.cpp,.cc,.c,.inl -Dsonar.sources=. -Dsonar.cfamily.build-wrapper-output=bw-output -Dsonar.exclusions=**/qrc_*,tests/**/*,**/?eneratedFiles/**/*