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:
|
2022-02-08 15:42:05 +00:00
|
|
|
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
|
2022-02-08 15:42:05 +00:00
|
|
|
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
|
2022-02-08 15:42:05 +00:00
|
|
|
run: |
|
2022-02-08 15:52:13 +00:00
|
|
|
cd build
|
2022-02-25 23:51:49 +00:00
|
|
|
ctest -C ${{ matrix.build_type }}
|
2022-02-08 15:42:05 +00:00
|
|
|
cd ..
|