Merge branch 'temp' #193
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 | |
on: | |
push: | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build-and-test: | |
name: Build and test ${{matrix.build-type}} mode | |
runs-on: windows-2022 | |
strategy: | |
matrix: | |
build-type: [Debug, Release] | |
steps: | |
- name: Clone recursively | |
uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Configure | |
shell: cmd | |
run: | | |
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat" | |
set CC=cl.exe | |
set CXX=cl.exe | |
cmake -B ${{github.workspace}}/build -G Ninja -DCMAKE_BUILD_TYPE=${{matrix.build-type}} -DBUILD_TESTING=ON -DFE_BUILD_EXAMPLES=ON | |
- name: Build | |
shell: cmd | |
run: | | |
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat" | |
cmake --build ${{github.workspace}}/build -v | |
- name: Test | |
shell: cmd | |
run: ${{github.workspace}}/build/bin/fe-test.exe |