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

Commit 2fed928

Browse files
authored
Merge pull request #1246 from lukaszstolarczuk/update-msbuild-gha
CI: add step to configure msbuild on Windows
2 parents 825ab57 + e608f12 commit 2fed928

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

.github/workflows/gha.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ jobs:
4646

4747
windows:
4848
name: Windows
49-
runs-on: windows-latest
49+
runs-on: windows-2019
50+
5051
env:
5152
platform: x64
5253
VCPKG_DEFAULT_TRIPLET: x64-windows
@@ -55,14 +56,14 @@ jobs:
5556
PMDK_VERSION: "1.8"
5657
CMAKE_TOOLCHAIN_FILE: "C:\\vcpkg\\scripts\\buildsystems\\vcpkg.cmake"
5758
CMAKE_INSTALL_PREFIX: "C:\\install\\libpmemobj-cpp"
58-
WORKDIR: "D:\\a\\libpmemobj-cpp\\libpmemobj-cpp\\"
59-
MSBUILD: "C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Enterprise\\MSBuild\\Current\\Bin"
6059
strategy:
6160
matrix:
6261
CONFIG: [Debug, Release]
6362
steps:
64-
- name: Update PATH
65-
run: echo "${env:MSBUILD}" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
63+
- name: Setup MSBuild.exe
64+
uses: microsoft/[email protected]
65+
with:
66+
msbuild-architecture: ${env:ARCH}
6667

6768
- name: Cache vcpkg packages
6869
uses: actions/cache@v1

0 commit comments

Comments
 (0)