You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@datasketches.apache.org by le...@apache.org on 2022/10/16 00:21:07 UTC
[datasketches-java] branch test_windows updated: Tune the github workflows
This is an automated email from the ASF dual-hosted git repository.
leerho pushed a commit to branch test_windows
in repository https://gitbox.apache.org/repos/asf/datasketches-java.git
The following commit(s) were added to refs/heads/test_windows by this push:
new 0996e5d9 Tune the github workflows
0996e5d9 is described below
commit 0996e5d9fc7c8ad1e2ffce5b8ef3cc4002e10e70
Author: Lee Rhodes <le...@users.noreply.github.com>
AuthorDate: Sat Oct 15 17:20:55 2022 -0700
Tune the github workflows
---
.../workflows/{maven.yml => auto-jdk-matrix.yml} | 23 +++------
.../{test_os_matrix.yml => manual-coverage.yml} | 56 ++++++++--------------
.../{test_os_matrix.yml => manual-os-matrix.yml} | 40 +++++++---------
3 files changed, 43 insertions(+), 76 deletions(-)
diff --git a/.github/workflows/maven.yml b/.github/workflows/auto-jdk-matrix.yml
similarity index 66%
rename from .github/workflows/maven.yml
rename to .github/workflows/auto-jdk-matrix.yml
index cc09c264..4830fe52 100644
--- a/.github/workflows/maven.yml
+++ b/.github/workflows/auto-jdk-matrix.yml
@@ -1,4 +1,4 @@
-name: Java Test Coverage with Maven, Coveralls
+name: DataSketches-Java Auto JDK Matrix Test & Install
on:
pull_request:
@@ -7,18 +7,16 @@ on:
workflow_dispatch:
env:
- MAVEN_OPTS: -Xmx4g -Xms1g
- repo_token: ${{secrets.coveralls_token}}
+ MAVEN_OPTS: -Xmx4g -Xms1g #for JVM
jobs:
build:
- name: Build, Test, Coverage
+ name: Build, Test, Install
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
- #jdk: [ 8,11,12,13 ]
- jdk: [ 8 ]
+ jdk: [ 8,11 ]
env:
JDK_VERSION: ${{ matrix.jdk }}
@@ -43,8 +41,6 @@ jobs:
java-package: jdk
architecture: x64 #options: x86, x64, armv7, aarch64, ppc64le
#cache #option
- #impl: hotspot #deprecated
- #targets: 'JAVA_HOME' #deprecated
- name: Echo Java Version
run: >
@@ -56,16 +52,9 @@ jobs:
-Dmaven.javadoc.skip=true
-Dgpg.skip=true
- - name: Install Dependencies
+ - name: Install
run: >
- mvn clean install -B -V -q
+ mvn clean install -B -q
-DskipTests=true
-Dgpg.skip=true
- - name: Report
- if: ${{ matrix.jdk == 8 && success() }}
- run: >
- mvn verify coveralls:report -B -V -q
- -Dcoveralls-repo-token=${repo_token}
- -Dmaven.javadoc.skip=true
- -Dgpg.skip=true
diff --git a/.github/workflows/test_os_matrix.yml b/.github/workflows/manual-coverage.yml
similarity index 56%
copy from .github/workflows/test_os_matrix.yml
copy to .github/workflows/manual-coverage.yml
index d764397d..aaeab6e4 100644
--- a/.github/workflows/test_os_matrix.yml
+++ b/.github/workflows/manual-coverage.yml
@@ -1,10 +1,10 @@
-name: Test Java with OS Matrix
+name: Datasketches-Java Manual Coverage Report
on:
workflow_dispatch:
-
+
env:
- MAVEN_OPTS: -Xmx4g -Xms1g
+ MAVEN_OPTS: -Xmx4g -Xms1g #for JVM
jobs:
build:
@@ -13,20 +13,18 @@ jobs:
strategy:
fail-fast: false
matrix:
- #jdk: [ 8,11,12,13 ]
- jdk: [ 8 ]
- # OS options: windows-latest, ubuntu-latest, macos-latest
- os: [ windows-latest, ubuntu-latest, macos-latest ]
+ jdk: [ 8 ] # must include 8
+ os: [ ubuntu-latest ]
include:
- - os: windows-latest
- skip_javadoc: "`-Dmaven`.javadoc`.skip=true"
- skip_gpg: "`-Dgpg`.skip=true"
- - os: ubuntu-latest
+ - os: macos-latest
skip_javadoc: -Dmaven.javadoc.skip=true
skip_gpg: -Dgpg.skip=true
- - os: macos-latest
+ - os: ubuntu-latest
skip_javadoc: -Dmaven.javadoc.skip=true
skip_gpg: -Dgpg.skip=true
+ - os: windows-latest
+ skip_javadoc: "`-Dmaven`.javadoc`.skip=true"
+ skip_gpg: "`-Dgpg`.skip=true"
env:
JDK_VERSION: ${{ matrix.jdk }}
@@ -45,37 +43,25 @@ jobs:
restore-keys: build-${{ runner.os }}-maven-
- name: Install Matrix JDK
- uses: AdoptOpenJDK/install-jdk@v1
+ uses: actions/setup-java@v3
with:
- version: ${{ matrix.jdk }}
- architecture: x64
- impl: hotspot
- targets: 'JAVA_HOME'
+ java-version: ${{ matrix.jdk }}
+ distribution: 'temurin'
+ java-package: jdk
+ architecture: x64 #options: x86, x64, armv7, aarch64, ppc64le
+ #cache #option
- name: Echo Java Version
run: >
java -version
- - name: Test
- run: >
- mvn clean test
- ${{matrix.os.skip_javadoc}}
- ${{matrix.os.skip_gpg}}
-
- - name: Install Dependencies
- run: >
- #-B batch mode, -V show Version without stoppping, -q quiet, only show errors
- mvn clean install -B -V -q
- -D skipTests=true
- ${{matrix.os.skip_gpg}}
-
- - name: Report
+ - name: Test, Package, Verify, Coverage Report
if: ${{ matrix.jdk == 8 && success() }}
run: >
- #Lifecycle:validate,compile,test,package,verify,install,deploy
- #test and coverage reports are available after the verify phase
- #Javadocs are available after compile
- mvn verify coveralls:report -B -V -q
+ # Lifecycle: validate, compile, test, package, verify, install, deploy
+ # Coverage reports are available after the verify phase
+ # -B batch mode, -V show Version without stoppping, -q quiet, only show errors
+ mvn verify coveralls:report -B
-DrepoToken=${{secrets.coveralls_token}}
${{matrix.os.skip_javadoc}}
${{matrix.os.skip_gpg}}
diff --git a/.github/workflows/test_os_matrix.yml b/.github/workflows/manual-os-matrix.yml
similarity index 61%
rename from .github/workflows/test_os_matrix.yml
rename to .github/workflows/manual-os-matrix.yml
index d764397d..60a603a5 100644
--- a/.github/workflows/test_os_matrix.yml
+++ b/.github/workflows/manual-os-matrix.yml
@@ -1,21 +1,19 @@
-name: Test Java with OS Matrix
+name: DataSketches-Java Manual OS Matrix Test & Install
on:
workflow_dispatch:
-
+
env:
- MAVEN_OPTS: -Xmx4g -Xms1g
+ MAVEN_OPTS: -Xmx4g -Xms1g #for JVM
jobs:
build:
- name: Build, Test, Coverage
+ name: Build, Test, Install
runs-on: ${{matrix.os}}
strategy:
fail-fast: false
matrix:
- #jdk: [ 8,11,12,13 ]
jdk: [ 8 ]
- # OS options: windows-latest, ubuntu-latest, macos-latest
os: [ windows-latest, ubuntu-latest, macos-latest ]
include:
- os: windows-latest
@@ -45,12 +43,13 @@ jobs:
restore-keys: build-${{ runner.os }}-maven-
- name: Install Matrix JDK
- uses: AdoptOpenJDK/install-jdk@v1
+ uses: actions/setup-java@v3
with:
- version: ${{ matrix.jdk }}
- architecture: x64
- impl: hotspot
- targets: 'JAVA_HOME'
+ java-version: ${{ matrix.jdk }}
+ distribution: 'temurin'
+ java-package: jdk
+ architecture: x64 #options: x86, x64, armv7, aarch64, ppc64le
+ #cache #option
- name: Echo Java Version
run: >
@@ -62,20 +61,13 @@ jobs:
${{matrix.os.skip_javadoc}}
${{matrix.os.skip_gpg}}
- - name: Install Dependencies
+ - name: Install
run: >
- #-B batch mode, -V show Version without stoppping, -q quiet, only show errors
- mvn clean install -B -V -q
+ # -B batch mode
+ # -V show Version without stoppping
+ # -q quiet, only show errors
+ mvn clean install -B -q
+ ${{matrix.os.skip_javadoc}}
-D skipTests=true
${{matrix.os.skip_gpg}}
- - name: Report
- if: ${{ matrix.jdk == 8 && success() }}
- run: >
- #Lifecycle:validate,compile,test,package,verify,install,deploy
- #test and coverage reports are available after the verify phase
- #Javadocs are available after compile
- mvn verify coveralls:report -B -V -q
- -DrepoToken=${{secrets.coveralls_token}}
- ${{matrix.os.skip_javadoc}}
- ${{matrix.os.skip_gpg}}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@datasketches.apache.org
For additional commands, e-mail: commits-help@datasketches.apache.org