Skip to content

ignore uv

ignore uv #2

name: CMake Build - Windows AMD64
on:
push:
branches: [ "master", "develop" ]
pull_request:
branches: [ "*" ]
jobs:
build:
runs-on: windows-latest
strategy:
matrix:
build_type: [Release]
# Windows only supports MSVC (cl)
c_compiler: [cl]
cpp_compiler: [cl]
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Set reusable strings
id: strings
shell: bash
run: |
echo "build-output-dir=${{ github.workspace }}/build" >> "$GITHUB_OUTPUT"
- name: Configure CMake
run: >
cmake -B ${{ steps.strings.outputs.build-output-dir }}
-DCMAKE_CXX_COMPILER=${{ matrix.cpp_compiler }}
-DCMAKE_C_COMPILER=${{ matrix.c_compiler }}
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
-S ${{ github.workspace }}
- name: Build C++ Runtime
run: cmake --build ${{ steps.strings.outputs.build-output-dir }} --config ${{ matrix.build_type }} -j4
- name: Prepare C++ Test Data
run: |
cp -r ${{ github.workspace }}/test_data ${{ steps.strings.outputs.build-output-dir }}/test/unit/test_data
- name: Run C++ Runtime Tests
working-directory: ${{ steps.strings.outputs.build-output-dir }}
run: ctest --build-config ${{ matrix.build_type }} --verbose