Skip to content

Commit

Permalink
Fix: Add github workflow for automated build
Browse files Browse the repository at this point in the history
  • Loading branch information
s-bose7 committed Jun 20, 2024
1 parent 94216cd commit 88b8523
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
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

0 comments on commit 88b8523

Please sign in to comment.