This is an automated email from the ASF dual-hosted git repository.
dongjoon pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/orc.git
The following commit(s) were added to refs/heads/main by this push:
new 326664b89 ORC-1302: Upgrade Github workflow to use `Visual Studio 16
2019` on Windows
326664b89 is described below
commit 326664b898b65c01c6189b2c57b3be2a1d6a8732
Author: Gang Wu <[email protected]>
AuthorDate: Thu Oct 27 22:38:57 2022 -0700
ORC-1302: Upgrade Github workflow to use `Visual Studio 16 2019` on Windows
### What changes were proposed in this pull request?
Upgrade Github workflow to build on Windows to use higher version of Visual
Studio. To be specific, the workflow uses Visual Studio 16 2019 instead of
Visual Studio 14 2015.
### Why are the changes needed?
This is the prerequisite for the C++17 movement across the C++ code base.
### How was this patch tested?
Pass all the CI checks.
Closes #1297 from wgtmac/ORC-1302.
Authored-by: Gang Wu <[email protected]>
Signed-off-by: Dongjoon Hyun <[email protected]>
---
.github/workflows/build_and_test.yml | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/.github/workflows/build_and_test.yml
b/.github/workflows/build_and_test.yml
index 8594fe484..793bb8c57 100644
--- a/.github/workflows/build_and_test.yml
+++ b/.github/workflows/build_and_test.yml
@@ -80,11 +80,13 @@ jobs:
uses: actions/checkout@v2
- name: Add msbuild to PATH
uses: microsoft/[email protected]
+ with:
+ msbuild-architecture: x64
- name: "Test"
run: |
mkdir build
cd build
- cmake .. -G "Visual Studio 14 2015 Win64" -DCMAKE_BUILD_TYPE=Debug
-DBUILD_LIBHDFSPP=OFF -DBUILD_TOOLS=OFF -DBUILD_JAVA=OFF
+ cmake .. -G "Visual Studio 16 2019" -DCMAKE_BUILD_TYPE=Debug
-DBUILD_LIBHDFSPP=OFF -DBUILD_TOOLS=OFF -DBUILD_JAVA=OFF
cmake --build . --config Debug
ctest -C Debug --output-on-failure