mirror of
https://github.com/serge1/ELFIO.git
synced 2024-11-19 20:19:07 +00:00
36 lines
739 B
YAML
36 lines
739 B
YAML
name: C/C++ CI
|
|
|
|
on:
|
|
push:
|
|
branches: [ master ]
|
|
pull_request:
|
|
branches: [ master ]
|
|
|
|
jobs:
|
|
build_cmake:
|
|
name: CMake Build & Test
|
|
|
|
env:
|
|
BUILD_TYPE: Release
|
|
|
|
strategy:
|
|
matrix:
|
|
os: [ubuntu-latest]
|
|
build_type: [Release]
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Install Boost Test
|
|
run: sudo apt-get install libboost-test-dev
|
|
- name: Configure CMake
|
|
run: cmake -B build -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} -DELFIO_BUILD_EXAMPLES=YES -DELFIO_BUILD_TESTS=YES
|
|
- name: Build
|
|
run: cmake --build build --config ${{ matrix.build_type }}
|
|
- name: test
|
|
run: |
|
|
cd build
|
|
ctest -VV
|
|
cd ..
|