Skip to content
This repository was archived by the owner on Mar 22, 2023. It is now read-only.

Commit 583ce53

Browse files
CI: add step to configure msbuild on Windows
and use fixed Windows 2019
1 parent 2dc1583 commit 583ce53

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/gha.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,7 @@ jobs:
109109

110110
windows:
111111
name: Windows
112-
runs-on: windows-latest
113-
112+
runs-on: windows-2019
114113
env:
115114
platform: x64
116115
VCPKG_DEFAULT_TRIPLET: x64-windows
@@ -119,7 +118,6 @@ jobs:
119118
PMDK_VERSION: "1.9"
120119
CMAKE_TOOLCHAIN_FILE: "C:\\vcpkg\\scripts\\buildsystems\\vcpkg.cmake"
121120
CMAKE_INSTALL_PREFIX: "C:\\install\\libpmemobj-cpp"
122-
MSBUILD: "C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Enterprise\\MSBuild\\Current\\Bin"
123121
strategy:
124122
matrix:
125123
BUILD_TYPE: [Debug, Release]
@@ -129,8 +127,10 @@ jobs:
129127
CXX_STANDARD: 17
130128

131129
steps:
132-
- name: Update PATH
133-
run: echo "${env:MSBUILD}" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
130+
- name: Setup MSBuild.exe
131+
uses: microsoft/[email protected]
132+
with:
133+
msbuild-architecture: ${env:ARCH}
134134

135135
- name: Cache vcpkg packages
136136
uses: actions/cache@v1

0 commit comments

Comments
 (0)