Skip to content

Commit

Permalink
cmake: add ci-workflow to test build with cmake
Browse files Browse the repository at this point in the history
Signed-off-by: Anton Kuchin <[email protected]>
  • Loading branch information
aikuchin authored and d-tatianin committed Mar 4, 2024
1 parent 7522e69 commit 5e464ce
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,24 @@ jobs:
if: always()
with:
report_paths: result.xml
build-with-cmake:
runs-on: ubuntu-latest

steps:
- name: Checkout the repository
uses: actions/checkout@v3

- name: Install libraries
run: |
sudo apt update
sudo apt install cmake ninja-build clang
- name: Build
run: |
src_dir="${{ github.workspace }}"
build_dir="$src_dir/build"
cmake -S $src_dir -B $build_dir -G Ninja -DCMAKE_C_COMPILER=clang
ninja -C $build_dir
lint-python-scripts:
runs-on: ubuntu-latest

Expand Down

0 comments on commit 5e464ce

Please sign in to comment.