Skip to content

Use vcpkg cache.

Use vcpkg cache. #25

Workflow file for this run

name: Windows
env:
VCPKG_BINARY_SOURCES: "clear;x-gha,readwrite"
on:
push:
paths:
- '**'
- '!.github/workflows/**'
- '.github/workflows/windows.yml'
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Install Vulkan SDK
uses: humbletim/install-vulkan-sdk@v1.1.1
- 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: Configure
run: |
mkdir build
cmake -S . -B build -G "Visual Studio 17 2022" -T ClangCL `
-DCMAKE_BUILD_TYPE=Release `
-DCMAKE_TOOLCHAIN_FILE="$env:VCPKG_INSTALLATION_ROOT/scripts/buildsystems/vcpkg.cmake" `
-DVKU_USE_GLFW=ON -DVKU_BUILD_EXAMPLES=ON
- name: Build
run: cmake --build build --config Release