Skip to content

ci: fix build.yml

ci: fix build.yml #30

Workflow file for this run

name: build test and lint
on:
push:
pull_request:
branches: [ main, dev ]
env:
BUILD_TYPE: Debug
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Install Deps
run: |
sudo apt-get update
sudo apt install -y qt6-base-dev qt6-base-dev-tools qt6-base-private-dev ninja-build clang cmake
- name: Configure CMake
run: |
cmake -S ${{github.workspace}} -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -G Ninja
- name: Build
working-directory: ${{github.workspace}}/build
run: ninja build
- name: Test
working-directory: ${{github.workspace}}/build
run: ctest -C ${{env.BUILD_TYPE}} -VV