Skip to content

[ISSUE #151][DIAGRAM_VIEW] Develop the diagram view #34

[ISSUE #151][DIAGRAM_VIEW] Develop the diagram view

[ISSUE #151][DIAGRAM_VIEW] Develop the diagram view #34

name: Build clang-tidy Qt6
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
# Checkout dlt-viewer's revision v2.24.0
- name: Checkout of the dlt-viewer
uses: actions/checkout@v3
with:
repository: GENIVI/dlt-viewer
ref: ebb3c355bc0edf2b6c3be84452b8afa4d1a82641
# 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 Qt6
- name: Install Qt6
uses: jurplel/install-qt-action@v3
with:
version: 6.5.0
target: desktop
host: linux
dir: ${{ github.workspace }}/Qt6
cache: true
modules: 'qtserialport'
# 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