Skip to content

fix: expand gtest include to linux #17

fix: expand gtest include to linux

fix: expand gtest include to linux #17

Workflow file for this run

name: Cpp Format & Test
on: [push]
jobs:
build-cpp:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y libgtest-dev cmake build-essential
# Build and install Google Test libraries
cd /usr/src/gtest
sudo cmake CMakeLists.txt
sudo make
sudo cp lib/*.a /usr/lib/x86_64-linux-gnu/
- name: Debug Google Test configuration
run: make debug-gtest
- name: Format C++ code
run: make format-cpp
- name: Lint C++ code
run: make lint-cpp
- name: Run C++ tests
run: make test-cpp:all
- name: Clean
run: make clean