Skip to content

DOCS: Update copyright year to 2023 #13

DOCS: Update copyright year to 2023

DOCS: Update copyright year to 2023 #13

name: windows cmake msvc
on:
[push, pull_request]
jobs:
build:
runs-on: windows-2022
env:
VCPKG_ROOT: ${{ github.workspace }}/vcpkg
VCPKG_DEFAULT_BINARY_CACHE: ${{ github.workspace }}/vcpkg/bincache
steps:
- uses: actions/checkout@v4
- uses: lukka/[email protected]
- name: Prepare vcpkg
id: prepare_vcpkg
shell: bash
run: |
mkdir -vp "${VCPKG_DEFAULT_BINARY_CACHE}"
cp -v "${GITHUB_WORKSPACE}"/.github/workflows/vcpkg.json "${GITHUB_WORKSPACE}"/
cp -v "${GITHUB_WORKSPACE}"/.github/workflows/CMakePresets.json "${GITHUB_WORKSPACE}"/
- name: Cache Qt
id: cache_qt
uses: actions/cache@v1
with:
path: ../Qt
key: windows_msvc_qtcache
- name: Install Qt
id: install_qt
uses: jurplel/install-qt-action@v2
with:
version: 5.15.2
cached: ${{ steps.cache_qt.outputs.cache-hit }}
- name: Restore artifacts and set up vcpkg
uses: lukka/run-vcpkg@v11
id: run_vcpkg
with:
vcpkgGitCommitId: accd79817981f1ce00c6a4164aecf2b2ac699823
vcpkgJsonGlob: vcpkg.json
- name: Run CMake, with vcpkg stage, generate, build and test
uses: lukka/run-cmake@v10
id: run_cmake
with:
configurePreset: ninja-multi-vcpkg
buildPreset: ninja-multi-vcpkg-debug
testPreset: ninja-multi-vcpkg-debug