-
Notifications
You must be signed in to change notification settings - Fork 11
53 lines (44 loc) · 1.38 KB
/
windows_cmake_msvc.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
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