You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@orc.apache.org by do...@apache.org on 2020/08/06 23:18:59 UTC
[orc] branch branch-1.6 updated: ORC-648: Add GitHub Action for
Java8/11 test coverage (#528)
This is an automated email from the ASF dual-hosted git repository.
dongjoon pushed a commit to branch branch-1.6
in repository https://gitbox.apache.org/repos/asf/orc.git
The following commit(s) were added to refs/heads/branch-1.6 by this push:
new 3431028 ORC-648: Add GitHub Action for Java8/11 test coverage (#528)
3431028 is described below
commit 343102857aa80947b634a15f7e31840db32efe28
Author: Dongjoon Hyun <do...@apache.org>
AuthorDate: Thu Aug 6 16:18:51 2020 -0700
ORC-648: Add GitHub Action for Java8/11 test coverage (#528)
### What changes were proposed in this pull request?
This PR aims to add `GitHub Action` for explicit Java 8/11 test coverage. Since this is an independent CI setup, this will not interfere with the existing CIs.
### Why are the changes needed?
Apache ORC is currently using
- Travis CI for testing various `clang` versions on Trusty and Mac with JDK7.
- Appveyor CI for testing Visual Studio on Windows OS.
### How was this patch tested?
Check the Github Action result on this PR.
![Screen Shot 2020-08-06 at 4 17 57 PM](https://user-images.githubusercontent.com/9700541/89592000-6b4c8d00-d800-11ea-9540-477188bfcb7f.png)
---
.github/workflows/master.yml | 46 ++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 46 insertions(+)
diff --git a/.github/workflows/master.yml b/.github/workflows/master.yml
new file mode 100644
index 0000000..3de4ee0
--- /dev/null
+++ b/.github/workflows/master.yml
@@ -0,0 +1,46 @@
+name: branch-1.6
+
+on:
+ push:
+ branches:
+ - branch-1.6
+ pull_request:
+ branches:
+ - branch-1.6
+
+jobs:
+ build:
+ name: "Build with Java ${{ matrix.java }}"
+ runs-on: ubuntu-latest
+ strategy:
+ fail-fast: false
+ matrix:
+ java:
+ - 1.8
+ - 11
+ env:
+ MAVEN_OPTS: -Xmx2g
+ MAVEN_SKIP_RC: true
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v2
+ - name: Cache Maven local repository
+ uses: actions/cache@v2
+ with:
+ path: ~/.m2/repository
+ key: ${{ matrix.java }}-maven-${{ hashFiles('**/pom.xml') }}
+ restore-keys: |
+ ${{ matrix.java }}-maven-
+ - name: Install Java ${{ matrix.java }}
+ uses: actions/setup-java@v1
+ with:
+ java-version: ${{ matrix.java }}
+ - name: "Test"
+ run: |
+ mkdir -p ~/.m2
+ mkdir build
+ cd build
+ cmake ..
+ make package test-out
+ cd ../java
+ mvn apache-rat:check