xref: /third_party/elfio/.github/workflows/c-cpp.yml
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /third_party/elfio/.github/workflows/
165042b18Sopenharmony_ciname: C/C++ CI
265042b18Sopenharmony_ci
365042b18Sopenharmony_cion:
465042b18Sopenharmony_ci  push:
565042b18Sopenharmony_ci    branches: [ main ]
665042b18Sopenharmony_ci  pull_request:
765042b18Sopenharmony_ci    branches: [ main ]
865042b18Sopenharmony_ci
965042b18Sopenharmony_cienv:
1065042b18Sopenharmony_ci  BUILD_TYPE: Release
1165042b18Sopenharmony_ci
1265042b18Sopenharmony_cijobs:
1365042b18Sopenharmony_ci  build_cmake:
1465042b18Sopenharmony_ci    name: CMake Build & Test
1565042b18Sopenharmony_ci
1665042b18Sopenharmony_ci    strategy:
1765042b18Sopenharmony_ci      matrix:
1865042b18Sopenharmony_ci        os: [ubuntu-latest, windows-latest]
1965042b18Sopenharmony_ci        build_type: [Release]
2065042b18Sopenharmony_ci
2165042b18Sopenharmony_ci    runs-on: ${{ matrix.os }}
2265042b18Sopenharmony_ci
2365042b18Sopenharmony_ci    steps:
2465042b18Sopenharmony_ci    - uses: actions/checkout@v3
2565042b18Sopenharmony_ci    - name: Configure CMake
2665042b18Sopenharmony_ci      run: cmake -B build -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} -DELFIO_BUILD_EXAMPLES=YES -DELFIO_BUILD_TESTS=YES
2765042b18Sopenharmony_ci    - name: Build
2865042b18Sopenharmony_ci      run: cmake --build build --config ${{ matrix.build_type }}
2965042b18Sopenharmony_ci    - name: Test
3065042b18Sopenharmony_ci      run: |
3165042b18Sopenharmony_ci        cd build
3265042b18Sopenharmony_ci        ctest -C ${{ matrix.build_type }}
3365042b18Sopenharmony_ci        cd ..
34

Indexes created Thu Nov 07 10:32:03 CST 2024