Skip to content

Commit

Permalink
Add github workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
cezbloch committed Nov 8, 2024
1 parent 315656b commit e0cb38c
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Build and Test

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up CMake
uses: lukka/get-cmake@v3

- name: Install dependencies
run: sudo apt-get install -y cmake g++ libgtest-dev

- name: Build project
run: |
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Debug ..
make
- name: Run tests
run: |
cd build
ctest --output-on-failure

0 comments on commit e0cb38c

Please sign in to comment.