Skip to content

Commit 2b62dc3

Browse files
ORC-875: Add GitHub Action job for Windows Server 2019 (apache#872)
### What changes were proposed in this pull request? This PR aims to add a test coverage for Windows on GitHub Action additionally. ### Why are the changes needed? This PR aims to replace `AppVeyor` with GitHub Action eventually. **AS IS(AppVeyor)** https://github.com/apache/orc/blob/ae660f3006cae145d0db7a897fd81fe94029c0b2/appveyor.yml#L18-L41 **THIS PR(GitHub Action)** https://github.com/apache/orc/runs/4662857757?check_suite_focus=true ``` -- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/x86_amd64/cl.exe - skipped -- compiler MSVC version 19.0.24245.0 ... Test project D:/a/orc/orc/build Start 1: orc-test 1/1 Test #1: orc-test ......................... Passed 61.99 sec ``` ### How was this patch tested? Pass the GitHub Action with newly add Windows job.
1 parent ae660f3 commit 2b62dc3

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

.github/workflows/build_and_test.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,22 @@ jobs:
5252
fi
5353
make package test-out
5454
55+
windows:
56+
name: "Build on Windows"
57+
runs-on: windows-2019
58+
steps:
59+
- name: Checkout
60+
uses: actions/checkout@v2
61+
- name: Add msbuild to PATH
62+
uses: microsoft/[email protected]
63+
- name: "Test"
64+
run: |
65+
mkdir build
66+
cd build
67+
cmake .. -G "Visual Studio 14 2015 Win64" -DCMAKE_BUILD_TYPE=Debug -DBUILD_LIBHDFSPP=OFF -DBUILD_TOOLS=OFF -DBUILD_JAVA=OFF
68+
cmake --build . --config Debug
69+
ctest -C Debug
70+
5571
doc:
5672
name: "Javadoc generation"
5773
runs-on: ubuntu-20.04

0 commit comments

Comments
 (0)