1name: C/C++ CI 2 3on: 4 push: 5 branches: [ main ] 6 pull_request: 7 branches: [ main ] 8 9env: 10 BUILD_TYPE: Release 11 12jobs: 13 build_cmake: 14 name: CMake Build & Test 15 16 strategy: 17 matrix: 18 os: [ubuntu-latest, windows-latest] 19 build_type: [Release] 20 21 runs-on: ${{ matrix.os }} 22 23 steps: 24 - uses: actions/checkout@v3 25 - name: Configure CMake 26 run: cmake -B build -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} -DELFIO_BUILD_EXAMPLES=YES -DELFIO_BUILD_TESTS=YES 27 - name: Build 28 run: cmake --build build --config ${{ matrix.build_type }} 29 - name: Test 30 run: | 31 cd build 32 ctest -C ${{ matrix.build_type }} 33 cd .. 34