ELFIO/.github/workflows/c-cpp.yml

34 lines
674 B
YAML
Raw Normal View History

2020-08-24 19:03:23 +00:00
name: C/C++ CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
2020-11-02 03:05:46 +00:00
build_cmake:
name: CMake Build & Test
2020-11-02 03:05:46 +00:00
env:
BUILD_TYPE: Release
strategy:
matrix:
2022-02-25 19:35:43 +00:00
os: [ubuntu-latest, windows-latest]
2020-11-02 03:05:46 +00:00
build_type: [Release]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Configure CMake
run: cmake -B build -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} -DELFIO_BUILD_EXAMPLES=YES -DELFIO_BUILD_TESTS=YES
2020-11-02 03:05:46 +00:00
- name: Build
2022-01-15 10:38:18 +00:00
run: cmake --build build --config ${{ matrix.build_type }}
2022-02-08 16:05:08 +00:00
- name: Test
run: |
2022-02-08 15:52:13 +00:00
cd build
ctest -VV
cd ..