diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index dd33bb5..29544cb 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -29,12 +29,12 @@ jobs: vcpkgTriplet: x64-windows vcpkgJsonGlob: '**/vcpkg.json' - - name: Configure CMake - run: cmake -B ${{github.workspace}}/build -DVCPKG_TARGET_TRIPLET=x64-windows -DCMAKE_TOOLCHAIN_FILE=${{ runner.workspace }}/vcpkg/scripts/buildsystems/vcpkg.cmake -DCMAKE_CXX_STANDARD=17 -DCMAKE_BUILD_TYPE=${{matrix.BUILD_TYPE}} - - - name: Build - run: cmake --build ${{github.workspace}}/build --config ${{matrix.BUILD_TYPE}} - - - name: Test - working-directory: ${{github.workspace}}/build - run: ctest -C ${{matrix.BUILD_TYPE}} --rerun-failed --output-on-failure \ No newline at end of file + - name: Run CMake + uses: lukka/run-cmake@v10 + with: + configurePreset: 'ninja-multi-vcpkg' + configurePresetAdditionalArgs: "['-DCMAKE_CXX_STANDARD=17']" + buildPreset: 'ninja-multi-vcpkg' + buildPresetAdditionalArgs: "['--config Release']" + testPreset: 'ninja-multi-vcpkg' + testPresetAdditionalArgs: "['--config Release']" \ No newline at end of file