1name: C/C++ CI 2 3on: 4 push: 5 branches: [ master ] 6 pull_request: 7 branches: [ master ] 8 9jobs: 10 build_autoconf: 11 name: autoconf build & test 12 13 runs-on: ubuntu-latest 14 15 steps: 16 - uses: actions/checkout@v2 17 - name: compile and run examples 18 run: | 19 autoreconf -i -f 20 ./configure 21 make 22 - name: compile and run tests 23 run: | 24 sudo apt-get install libboost-test-dev 25 cd tests 26 autoreconf -i -f 27 ./configure 28 make 29 make check 30 - name: make distcheck 31 run: make distcheck 32 33 build_cmake: 34 name: cmake build & test 35 36 env: 37 BUILD_TYPE: Release 38 39 strategy: 40 matrix: 41 os: [ubuntu-latest, windows-latest] 42 build_type: [Release] 43 44 runs-on: ${{ matrix.os }} 45 46 steps: 47 - uses: actions/checkout@v2 48 - name: Create Build Directory 49 run: cmake -E make_directory ${{ runner.workspace }}/build 50 - name: Configure CMake 51 working-directory: ${{ runner.workspace }}/build 52 run: cmake ${{ github.workspace }} -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} -DELFIO_BUILD_EXAMPLES=YES 53 - name: Build 54 working-directory: ${{ runner.workspace }}/build 55 run: cmake --build . --config ${{ matrix.build_type }} 56