[PLOT_VIEW] Fix several minor issues #124
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: Build clang-tidy Qt5 | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
workflow_dispatch: | |
inputs: | |
branch: | |
description: 'Target branch' | |
required: true | |
default: 'master' | |
jobs: | |
build_clang_tidy: | |
runs-on: ubuntu-latest | |
steps: | |
# Install clang-tidy | |
- name: Install clang-tidy | |
run: sudo DEBIAN_FRONTEND=noninteractive apt-get -yq install clang-tidy | |
shell: bash | |
# Install uuid-dev | |
- name: Install uuid-dev | |
run: | | |
sudo apt update | |
sudo DEBIAN_FRONTEND=noninteractive apt-get -yq install uuid-dev | |
shell: bash | |
# Install Java 11 | |
- name: Install Java 11 | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: '11' | |
# Install cmake version v3.24.x | |
- name: Setup cmake | |
uses: jwlawson/[email protected] | |
with: | |
cmake-version: 'v3.24.x' | |
# Checkout dlt-viewer's revision v2.25.0 | |
- name: Checkout of the dlt-viewer | |
uses: actions/checkout@v3 | |
with: | |
repository: GENIVI/dlt-viewer | |
ref: v2.25.0 | |
# Checkout project's revision, which is pushed | |
- name: Checkout of the project | |
uses: actions/checkout@v3 | |
with: | |
repository: svlad-90/${{ github.event.repository.name }} | |
path: ./plugin/${{ github.event.repository.name }} | |
ref: ${{ github.ref }} | |
# Adjust dlt-viewer's CMake file to sub-include the plugin | |
- name: Patch dlt-viewer's CMakeLists.txt | |
run: echo 'add_subdirectory(${{ github.event.repository.name }}/dltmessageanalyzerplugin/src)' >> CMakeLists.txt | |
shell: bash | |
working-directory: ./plugin | |
# Install Qt5 | |
- name: Install Qt5 | |
uses: jurplel/install-qt-action@v3 | |
with: | |
version: 5.15.0 | |
target: desktop | |
host: linux | |
dir: ${{ github.workspace }}/Qt5 | |
cache: true | |
# Create build directory | |
- name: Creation of the "../build" directory | |
run: mkdir ../build | |
shell: bash | |
working-directory: ./ | |
# CMake execution | |
- name: CMake with clang-tidy | |
run: cmake ../${{ github.event.repository.name }} -DDMA_CLANG_TIDY_BUILD=true | |
shell: bash | |
working-directory: ../build | |
# Build of the project with proceed on error | |
- name: Make | |
run: make -k -j8 | |
shell: bash | |
working-directory: ../build |