Skip to content

Commit

Permalink
build: add a github action for building and testing
Browse files Browse the repository at this point in the history
  • Loading branch information
jolars committed Nov 24, 2023
1 parent 4f20922 commit 3c4416e
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: build-and-test
on: [push, pull_request]
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

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

- name: Configure CMake
run: |
mkdir -p build
cmake -B build -S .
- name: Build
run: cmake --build build

- name: Test
run: ctest --test-dir build --output-on-failure

0 comments on commit 3c4416e

Please sign in to comment.