Merge pull request #142 from zhengjian526/master #40
This file contains 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: Windows Server 2022 | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build_on_windows: | |
runs-on: windows-latest | |
strategy: | |
matrix: | |
mode: [ Debug ] #[ Release, Debug ] | |
arch: [ amd64, x86 ] #[ amd64,x86 ] | |
ssl: [ OFF ] #[ ON, OFF ] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Install ninja-build tool | |
uses: seanmiddleditch/gha-setup-ninja@v3 | |
- name: Enable Developer Command Prompt | |
uses: ilammy/[email protected] | |
with: | |
arch: ${{ matrix.arch }} | |
- name: Configure CMake | |
run: cmake -DCMAKE_BUILD_TYPE=${{ matrix.mode }} -DCINATRA_ENABLE_SSL=${{matrix.ssl}} -G Ninja -B ${{github.workspace}}/build | |
- name: Build | |
run: cmake --build ${{github.workspace}}/build --config ${{ matrix.mode }} | |
- name: Test | |
working-directory: ${{github.workspace}}/build | |
run: ctest -C ${{matrix.mode}} -j 1 -V |