Skip to content

Commit

Permalink
add ci workflow for ctest
Browse files Browse the repository at this point in the history
  • Loading branch information
marenz2569 committed Nov 25, 2024
1 parent 978e660 commit 9fa50dd
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/ctest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: ctest

on: [push, pull_request]

env:
PYTHONUNBUFFERED: 1

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
with:
submodules: 'true'

- name: Install python3
run: |
sudo apt update
sudo apt install python3
- name: Create build directory
run: |
mkdir build
- name: Run CMake configure (default)
run: |
cd build
cmake ..
- name: Build
run: |
cd build
make -j4
- name: Ctest
run: |
make test

0 comments on commit 9fa50dd

Please sign in to comment.