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

Commit f5aba20

Browse files
CI: add step to configure msbuild on Windows
and use fixed Windows 2019
1 parent f177676 commit f5aba20

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/gha.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -119,18 +119,18 @@ jobs:
119119
PMDK_VERSION: "1.9"
120120
CMAKE_TOOLCHAIN_FILE: "C:\\vcpkg\\scripts\\buildsystems\\vcpkg.cmake"
121121
CMAKE_INSTALL_PREFIX: "C:\\install\\libpmemobj-cpp"
122-
MSBUILD: "C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Enterprise\\MSBuild\\Current\\Bin"
123122
strategy:
124123
matrix:
125124
BUILD_TYPE: [Debug, Release]
126125
CXX_STANDARD: [14]
127126
include:
128127
- BUILD_TYPE: RelWithDebInfo
129128
CXX_STANDARD: 17
130-
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)