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

Commit c8a90ca

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

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/gha.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,6 @@ 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]
@@ -129,8 +128,10 @@ jobs:
129128
CXX_STANDARD: 17
130129

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

135136
- name: Cache vcpkg packages
136137
uses: actions/cache@v1

0 commit comments

Comments
 (0)