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

56 lines
1.2 KiB
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_autoconf:
name: autoconf build & test
2020-08-24 19:03:23 +00:00
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
2020-08-25 15:32:05 +00:00
- name: compile and run examples
run: |
autoreconf -i -f
./configure
make
- name: compile and run tests
run: |
2020-08-25 15:35:27 +00:00
sudo apt-get install libboost-test-dev
2020-08-25 15:32:05 +00:00
cd tests
autoreconf -i -f
./configure
make
make check
2020-08-24 19:03:23 +00:00
- name: make distcheck
run: make distcheck
2020-11-02 03:05:46 +00:00
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: Create Build Directory
run: cmake -E make_directory ${{ runner.workspace }}/build
- name: Configure CMake
working-directory: ${{ runner.workspace }}/build
run: cmake ${{ github.workspace }} -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} -DELFIO_BUILD_EXAMPLES=YES
2020-11-02 03:05:46 +00:00
- name: Build
working-directory: ${{ runner.workspace }}/build
run: cmake --build . --config ${{ matrix.build_type }}