Skip to content

fixup! Add improved workflow file #3

fixup! Add improved workflow file

fixup! Add improved workflow file #3

Workflow file for this run

name: Build QLiteHtmlBrowser
on:
push:
branches:
- main
- qt6
tags:
- "v*"
pull_request:
workflow_call:
jobs:
check-formatting:
name: Check code formatting
runs-on: ubuntu-latest
strategy:
matrix:
path:
- 'include'
- 'src'
- 'test'
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Run clang-format formatting check
uses: jidicula/[email protected]
with:
clang-format-version: '18'
check-path: ${{ matrix.path }}
build:
needs: check-formatting
name: Build and run tests
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install dependencies
run: |
sudo apt update
sudo apt install qt6-base-dev qt6-tools-dev ninja-build
- name: Run CMake
run: cmake -B ${{github.workspace}}/build -GNinja -DCMAKE_BUILD_TYPE=Release
- name: Build
run: cmake --build ${{github.workspace}}/build
- name: Test
env:
QT_QPA_PLATFORM: offscreen
working-directory: ${{github.workspace}}/build
run: ctest -V -E NOT_BUILT