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

34 lines
686 B
YAML
Raw Normal View History

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