Include <string_view> only for MSVC. #130
Workflow file for this run
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 | |
env: | |
VCPKG_BINARY_SOURCES: "clear;x-gha,readwrite" | |
on: | |
push: | |
paths: | |
- '**' | |
- '!README.md' | |
- '!LICENSE.txt' | |
- '!.github/workflows/*.yml' | |
- '.github/workflows/windows.yml' | |
jobs: | |
build: | |
strategy: | |
matrix: | |
build: [Debug, Release] | |
use_std_module: [ON, OFF] | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Enable Developer Command Prompt | |
uses: ilammy/msvc-dev-cmd@v1 | |
with: | |
toolset: 14.40 | |
- name: Install Vulkan SDK | |
uses: humbletim/setup-vulkan-sdk@v1.2.0 | |
with: | |
vulkan-query-version: latest | |
vulkan-components: Vulkan-Headers, Vulkan-Loader | |
vulkan-use-cache: true | |
- name: Install vcpkg | |
run: | | |
git clone https://github.com/microsoft/vcpkg.git | |
cd vcpkg && .\bootstrap-vcpkg.bat | |
echo "VCPKG_ROOT=${{ github.workspace }}/vcpkg" >> $GITHUB_ENV | |
- name: Export GitHub Actions cache environment variables | |
uses: actions/github-script@v7 | |
with: | |
script: | | |
core.exportVariable('ACTIONS_CACHE_URL', process.env.ACTIONS_CACHE_URL || ''); | |
core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || ''); | |
- name: Apply patch for vcpkg-based dependency management | |
run: git apply vcpkg-deps.patch .github/workflows/ci-fix.patch --whitespace=fix | |
- name: Configure | |
run: | | |
mv .github\workflows\CMakeUserPresets.json .\ | |
cmake --preset=msvc ` | |
-DCMAKE_BUILD_TYPE=${{ matrix.build }} ` | |
-DVKU_USE_STD_MODULE=${{ matrix.use_std_module }} | |
- name: Install | |
run: cmake --build --preset=msvc --target install |