started to update the project to the current Beman standard #471
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # .github/workflows/windows.yml | |
| # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | |
| name: Windows Build | |
| on: | |
| push: | |
| branches: ["main"] | |
| paths: | |
| - "include/**" | |
| - "src/**" | |
| - "tests/**" | |
| - "examples/**" | |
| - "cmake/**" | |
| - "CMakePresets.json" | |
| - "CMakeLists.txt" | |
| - ".github/workflows/windows.yml" | |
| pull_request: | |
| branches: ["main"] | |
| paths: | |
| - "include/**" | |
| - "src/**" | |
| - "tests/**" | |
| - "examples/**" | |
| - "cmake/**" | |
| - "CMakePresets.json" | |
| - "CMakeLists.txt" | |
| - ".github/workflows/windows.yml" | |
| jobs: | |
| build: | |
| runs-on: windows-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| preset: [debug, release] | |
| # TODO: compiler: [cl, clang-cl] | |
| compiler: [cl] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| # see https://github.com/marketplace/actions/enable-developer-command-prompt | |
| - uses: ilammy/msvc-dev-cmd@v1 | |
| with: | |
| vsversion: 2022 | |
| # - name: build environment | |
| # run: pip install -r requirements.txt | |
| - name: cmake workflow ${{ matrix.preset }} | |
| shell: bash | |
| run: | | |
| cmake --version | |
| ninja --version | |
| CXX=${{ matrix.compiler }} cmake --workflow --preset ${{ matrix.preset }} | |
| # - name: configure | |
| # run: CXX=${{ matrix.compiler }} cmake --preset ${{ matrix.preset }} | |
| # - name: build | |
| # run: cmake --build --preset ${{ matrix.preset }} | |
| # - name: ctest | |
| # run: ctest --preset ${{ matrix.preset }} |