Skip to content

fix and bump CI (#46) #29

fix and bump CI (#46)

fix and bump CI (#46) #29

Workflow file for this run

name: windows
on: [push, pull_request]
permissions:
contents: read
# mostly stolen from
# https://github.com/fmtlib/fmt
jobs:
build:
runs-on: windows-2022
strategy:
matrix:
build_type: [Debug, RelWithDebInfo, Release]
steps:
- uses: actions/checkout@v4
- name: Configure Vulkan SDK
uses: humbletim/setup-vulkan-sdk@v1.2.1
with:
vulkan-query-version: 1.4.328.1
vulkan-components: Vulkan-Headers, Vulkan-Loader, SPIRV-Tools, Glslang
vulkan-use-cache: true
- name: Install CMake
uses: ssrobins/install-cmake@v1
with:
version: 3.30.2
- name: Create Build Environment
run: cmake -E make_directory ${{runner.workspace}}/build
- name: Configure
# Use a bash shell for $GITHUB_WORKSPACE.
shell: bash
working-directory: ${{runner.workspace}}/build
run: |
cmake -DCMAKE_BUILD_TYPE=${{matrix.build_type}} \
$GITHUB_WORKSPACE
- name: Build
working-directory: ${{runner.workspace}}/build
run: |
$threads = (Get-CimInstance Win32_ComputerSystem).NumberOfLogicalProcessors
cmake --build . --config ${{matrix.build_type}} --parallel $threads