Skip to content

Fix: Add github workflow for automated build #7

Fix: Add github workflow for automated build

Fix: Add github workflow for automated build #7

Workflow file for this run

name: CMake Continuous Integration
on:
push:
branches:
- 'main'
pull_request:
branches:
- 'main'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
submodules: true # This ensures that the googletest submodule is also checked out
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y libsnappy-dev
- name: Configure CMake
run: mkdir build && cd build && cmake ..
- name: Build
run: cd build && make
- name: Run tests
run: cd build && ./run_tests