Skip to content

Commit

Permalink
Add test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
dsieger committed Nov 27, 2024
1 parent 7849f99 commit dd9b996
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: build

on:
push:
paths-ignore:
- "docs/**"
- ".github/workflows/docs.yml"
- "/*.md"

env:
BUILD_TYPE: Debug

jobs:
build:
strategy:
matrix:
os: [windows-latest]
runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v4

- name: Create build directory
run: cmake -E make_directory ${{runner.workspace}}/build

- name: Configure CMake
shell: bash
working-directory: ${{runner.workspace}}/build
run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DPMP_BUILD_REGRESSIONS=ON

- name: Build
working-directory: ${{runner.workspace}}/build
shell: bash
run: cmake --build . --config $BUILD_TYPE --parallel

- name: Test
working-directory: ${{runner.workspace}}/build
shell: bash
run: ctest -C $BUILD_TYPE
env:
CTEST_OUTPUT_ON_FAILURE: 1

0 comments on commit dd9b996

Please sign in to comment.