You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ozone.apache.org by el...@apache.org on 2020/09/07 07:14:05 UTC
[hadoop-ozone] branch master updated: HDDS-4198. Compile Ozone with
multiple Java versions (#1387)
This is an automated email from the ASF dual-hosted git repository.
elek pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hadoop-ozone.git
The following commit(s) were added to refs/heads/master by this push:
new dc49daa HDDS-4198. Compile Ozone with multiple Java versions (#1387)
dc49daa is described below
commit dc49daa25910c701e1091a0e3ed544ad5c05d6f6
Author: Doroszlai, Attila <64...@users.noreply.github.com>
AuthorDate: Mon Sep 7 09:13:46 2020 +0200
HDDS-4198. Compile Ozone with multiple Java versions (#1387)
---
.github/workflows/post-commit.yml | 17 ++++++++++++++---
hadoop-ozone/dev-support/checks/build.sh | 2 +-
2 files changed, 15 insertions(+), 4 deletions(-)
diff --git a/.github/workflows/post-commit.yml b/.github/workflows/post-commit.yml
index ff0111f..d963617 100644
--- a/.github/workflows/post-commit.yml
+++ b/.github/workflows/post-commit.yml
@@ -22,6 +22,10 @@ jobs:
build:
name: compile
runs-on: ubuntu-18.04
+ strategy:
+ matrix:
+ java: [ 8, 11 ]
+ fail-fast: false
steps:
- name: Checkout project
uses: actions/checkout@v2
@@ -34,10 +38,17 @@ jobs:
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-
- - name: Execute tests
- uses: ./.github/buildenv
+ - name: Cache for maven dependencies
+ uses: actions/cache@v2
with:
- args: ./hadoop-ozone/dev-support/checks/build.sh
+ path: ~/.m2/repository
+ key: maven-repo-${{ hashFiles('**/pom.xml') }}
+ - name: Setup java
+ uses: actions/setup-java@v1
+ with:
+ java-version: ${{ matrix.java }}
+ - name: Run a full build
+ run: hadoop-ozone/dev-support/checks/build.sh
bats:
runs-on: ubuntu-18.04
steps:
diff --git a/hadoop-ozone/dev-support/checks/build.sh b/hadoop-ozone/dev-support/checks/build.sh
index 2cdc4fe..01a4f5c 100755
--- a/hadoop-ozone/dev-support/checks/build.sh
+++ b/hadoop-ozone/dev-support/checks/build.sh
@@ -17,5 +17,5 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
cd "$DIR/../../.." || exit 1
export MAVEN_OPTS="-Xmx4096m"
-mvn -B -Dmaven.javadoc.skip=true -DskipTests clean install "$@"
+mvn -V -B -Dmaven.javadoc.skip=true -DskipTests clean install "$@"
exit $?
---------------------------------------------------------------------
To unsubscribe, e-mail: ozone-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: ozone-commits-help@hadoop.apache.org