Skip to content

Commit

Permalink
[CI] Print Java version when install Java and not when invoking Gradle.
Browse files Browse the repository at this point in the history
  • Loading branch information
vyazelenko committed Apr 8, 2021
1 parent 41b7ee9 commit e48124b
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 9 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/ci-low-cadence.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:
with:
java-version: 8
- name: Build and Run Slow Tests with Gradle
run: java -Xinternalversion && ./gradlew slowTest
run: ./gradlew slowTest
env:
BUILD_JAVA_VERSION: ${{ matrix.java }}
- name: Copy test logs
Expand Down Expand Up @@ -102,6 +102,7 @@ jobs:
java-version: 8
- name: Setup BUILD_JAVA_HOME & BUILD_JAVA_VERSION
run: |
java -Xinternalversion
echo "BUILD_JAVA_HOME=${JAVA_HOME}" >> $GITHUB_ENV
echo "BUILD_JAVA_VERSION=8" >> $GITHUB_ENV
- name: Install compiler
Expand Down Expand Up @@ -154,6 +155,7 @@ jobs:
java-version: 8
- name: Setup BUILD_JAVA_HOME & BUILD_JAVA_VERSION
run: |
java -Xinternalversion
echo "BUILD_JAVA_HOME=${JAVA_HOME}" >> $GITHUB_ENV
echo "BUILD_JAVA_VERSION=8" >> $GITHUB_ENV
- name: Build
Expand Down Expand Up @@ -203,6 +205,7 @@ jobs:
java-version: 8
- name: Setup BUILD_JAVA_HOME & BUILD_JAVA_VERSION
run: |
java -Xinternalversion
echo "BUILD_JAVA_HOME=${JAVA_HOME}" >> $GITHUB_ENV
echo "BUILD_JAVA_VERSION=8" >> $GITHUB_ENV
- name: Install compiler
Expand Down
21 changes: 13 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ jobs:
with:
java-version: 8
- name: Build with Gradle
run: java -Xinternalversion && ./gradlew
run: ./gradlew
- name: Copy test logs
id: copy_test_logs
if: failure()
Expand Down Expand Up @@ -167,6 +167,7 @@ jobs:
java-version: 8
- name: Setup BUILD_JAVA_HOME & BUILD_JAVA_VERSION
run: |
java -Xinternalversion
echo "BUILD_JAVA_HOME=${JAVA_HOME}" >> $GITHUB_ENV
echo "BUILD_JAVA_VERSION=8" >> $GITHUB_ENV
- name: Install compiler
Expand All @@ -178,7 +179,7 @@ jobs:
tar xf cmake-${CMAKE_VERSION}-Linux-x86_64.tar.gz
echo "cmake-${CMAKE_VERSION}-Linux-x86_64/bin" >> $GITHUB_PATH
- name: Build
run: cmake --version && java -Xinternalversion && cppbuild/cppbuild --c-warnings-as-errors --cxx-warnings-as-errors
run: cmake --version && cppbuild/cppbuild --c-warnings-as-errors --cxx-warnings-as-errors
- name: Copy test logs
id: copy_test_logs
if: failure()
Expand Down Expand Up @@ -216,7 +217,7 @@ jobs:
path: ~/.gradle/wrapper
key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }}
- name: Build
run: java -Xinternalversion && cppbuild/centos-docker-build ${{ matrix.version }}
run: cppbuild/centos-docker-build ${{ matrix.version }}
- name: Copy test logs
id: copy_test_logs
if: failure()
Expand Down Expand Up @@ -262,6 +263,7 @@ jobs:
java-version: 8
- name: Setup BUILD_JAVA_HOME & BUILD_JAVA_VERSION
run: |
java -Xinternalversion
echo "BUILD_JAVA_HOME=${JAVA_HOME}" >> $GITHUB_ENV
echo "BUILD_JAVA_VERSION=8" >> $GITHUB_ENV
- name: Install compiler
Expand All @@ -274,7 +276,7 @@ jobs:
tar xf cmake-${CMAKE_VERSION}-Linux-x86_64.tar.gz
echo "cmake-${CMAKE_VERSION}-Linux-x86_64/bin" >> $GITHUB_PATH
- name: Build
run: cmake --version && java -Xinternalversion && cppbuild/cppbuild --c-warnings-as-errors --cxx-warnings-as-errors
run: cmake --version && cppbuild/cppbuild --c-warnings-as-errors --cxx-warnings-as-errors
- name: Copy test logs
id: copy_test_logs
if: failure()
Expand Down Expand Up @@ -320,6 +322,7 @@ jobs:
java-version: 8
- name: Setup BUILD_JAVA_HOME & BUILD_JAVA_VERSION
run: |
java -Xinternalversion
echo "BUILD_JAVA_HOME=${JAVA_HOME}" >> $GITHUB_ENV
echo "BUILD_JAVA_VERSION=8" >> $GITHUB_ENV
- name: Install compiler
Expand All @@ -332,7 +335,7 @@ jobs:
tar xf cmake-${CMAKE_VERSION}-Linux-x86_64.tar.gz
echo "cmake-${CMAKE_VERSION}-Linux-x86_64/bin" >> $GITHUB_PATH
- name: Build
run: cmake --version && java -Xinternalversion && cppbuild/cppbuild --debug-build
run: cmake --version && cppbuild/cppbuild --debug-build
- name: Copy test logs
id: copy_test_logs
if: failure()
Expand Down Expand Up @@ -376,15 +379,16 @@ jobs:
java-version: 8
- name: Setup BUILD_JAVA_HOME & BUILD_JAVA_VERSION
run: |
echo "BUILD_JAVA_HOME=${JAVA_HOME}/zulu-8.jdk/Contents/Home" >> $GITHUB_ENV
java -Xinternalversion
echo "BUILD_JAVA_HOME=${JAVA_HOME}" >> $GITHUB_ENV
echo "BUILD_JAVA_VERSION=8" >> $GITHUB_ENV
- name: Install CMake
run: |
curl -O -L https://github.com/Kitware/CMake/releases/download/v${CMAKE_VERSION}/cmake-${CMAKE_VERSION}-Darwin-x86_64.tar.gz
tar xf cmake-${CMAKE_VERSION}-Darwin-x86_64.tar.gz
echo "cmake-${CMAKE_VERSION}-Darwin-x86_64/CMake.app/Contents/bin" >> $GITHUB_PATH
- name: Build
run: cmake --version && java -Xinternalversion && cppbuild/cppbuild --c-warnings-as-errors --cxx-warnings-as-errors
run: cmake --version && cppbuild/cppbuild --c-warnings-as-errors --cxx-warnings-as-errors
- name: Copy test logs
id: copy_test_logs
if: failure()
Expand Down Expand Up @@ -428,6 +432,7 @@ jobs:
java-version: 8
- name: Setup BUILD_JAVA_HOME & BUILD_JAVA_VERSION
run: |
java -Xinternalversion
echo "BUILD_JAVA_HOME=$env:JAVA_HOME" | Out-File $env:GITHUB_ENV -Encoding utf8 -Append
echo "BUILD_JAVA_VERSION=8" | Out-File $env:GITHUB_ENV -Encoding utf8 -Append
- name: Install CMake
Expand All @@ -437,7 +442,7 @@ jobs:
7z x cmake-$Env:CMAKE_VERSION-win64-x64.zip
echo "cmake-$Env:CMAKE_VERSION-win64-x64/bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8
- name: Build
run: cmake --version && java -Xinternalversion && cppbuild/cppbuild
run: cmake --version && cppbuild/cppbuild
- name: Copy test logs
id: copy_test_logs
if: failure()
Expand Down

0 comments on commit e48124b

Please sign in to comment.