ELFIO/.github/workflows/c-cpp.yml
2022-01-18 11:37:31 -08:00

52 lines
1.0 KiB
YAML

name: C/C++ CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build_autoconf:
name: autoconf build & test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: compile and run examples
run: |
autoreconf -i -f
./configure
make
- name: compile and run tests
run: |
sudo apt-get install libboost-test-dev
cd tests
autoreconf -i -f
./configure
make
make check
- name: make distcheck
run: make distcheck
build_cmake:
name: cmake build & test
env:
BUILD_TYPE: Release
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
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
- name: Build
run: cmake --build build --config ${{ matrix.build_type }}