Skip to content

windows

windows #250

Workflow file for this run

name: windows
on:
push:
pull_request:
branches:
- main
workflow_dispatch:
schedule:
- cron: '0 1 * * *'
env:
VCPKG_ROOT_DIR: ${{ github.workspace }}/vcpkg
# Tells vcpkg where binary packages are stored.
VCPKG_DEFAULT_BINARY_CACHE: ${{ github.workspace }}/vcpkg/bincache
# Let's use GitHub Action cache as storage for the vcpkg Binary Caching feature.
VCPKG_BINARY_SOURCES: 'clear;x-gha,readwrite'
jobs:
test:
name: windows-test-${{ matrix.build-type }}
runs-on: windows-2022
strategy:
fail-fast: false
matrix:
build-type: [Debug, Release]
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/setup
- name: Restore from cache the dependencies and generate project files
shell: pwsh
run: cmake --preset=ci-windows -DCMAKE_BUILD_TYPE=${{ matrix.build-type }}
- name: Build
run: cmake --build build --config ${{ matrix.build-type }} -j 2
- name: Install
run: cmake --install build --config ${{ matrix.build-type }} --prefix prefix