Update build.yml #26
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
| name: Build | |
| on: | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| types: [opened, synchronize, reopened] | |
| jobs: | |
| build: | |
| name: Build | |
| runs-on: windows-latest | |
| steps: | |
| # Checkout code | |
| - uses: actions/checkout@v2 | |
| # Install Ninja (CMake generator) | |
| - name: Install Ninja | |
| run: choco install ninja --yes | |
| # --- First build: CLI_ONLY=on --- | |
| - name: Configure CMake (CLI_ONLY=on) | |
| run: cmake -B build_cli -G "Ninja" -DCLI_ONLY=on | |
| - name: Build (CLI_ONLY=on) | |
| run: cmake --build build_cli --config Release | |
| # --- Second build: Default --- | |
| #- name: Configure CMake (default) | |
| # run: cmake -B build_full -G "Ninja" | |
| #- name: Build (default) | |
| # run: cmake --build build_full --config Release |