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/15 00:22:14 UTC
[datasketches-java] branch test_windows updated: update 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 7bbb2841 update workflows
7bbb2841 is described below
commit 7bbb28419982b69dfd938b413a5024b428a349bb
Author: Lee Rhodes <le...@users.noreply.github.com>
AuthorDate: Fri Oct 14 17:22:02 2022 -0700
update workflows
---
.github/workflows/maven.yml | 21 ++++++++++++---------
.github/workflows/test_os_matrix.yml | 15 +++++++++++----
2 files changed, 23 insertions(+), 13 deletions(-)
diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml
index 773c3237..cc09c264 100644
--- a/.github/workflows/maven.yml
+++ b/.github/workflows/maven.yml
@@ -17,31 +17,34 @@ jobs:
strategy:
fail-fast: false
matrix:
- jdk: [ 8,11,12,13 ]
-
+ #jdk: [ 8,11,12,13 ]
+ jdk: [ 8 ]
env:
JDK_VERSION: ${{ matrix.jdk }}
steps:
- name: "Checkout ${{ github.ref }} ( ${{ github.sha }} )"
- uses: actions/checkout@v2
+ uses: actions/checkout@v3
with:
persist-credentials: false
- name: Cache local Maven repository
- uses: actions/cache@v2
+ uses: actions/cache@v3
with:
path: ~/.m2/repository
key: build-${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
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
+ #impl: hotspot #deprecated
+ #targets: 'JAVA_HOME' #deprecated
- name: Echo Java Version
run: >
diff --git a/.github/workflows/test_os_matrix.yml b/.github/workflows/test_os_matrix.yml
index 17aa4489..d764397d 100644
--- a/.github/workflows/test_os_matrix.yml
+++ b/.github/workflows/test_os_matrix.yml
@@ -5,7 +5,6 @@ on:
env:
MAVEN_OPTS: -Xmx4g -Xms1g
- #repo_token: ${{secrets.coveralls_token}}
jobs:
build:
@@ -16,7 +15,8 @@ jobs:
matrix:
#jdk: [ 8,11,12,13 ]
jdk: [ 8 ]
- os: [ windows-latest, ubuntu-latest ]
+ # OS options: windows-latest, ubuntu-latest, macos-latest
+ os: [ windows-latest, ubuntu-latest, macos-latest ]
include:
- os: windows-latest
skip_javadoc: "`-Dmaven`.javadoc`.skip=true"
@@ -24,18 +24,21 @@ jobs:
- os: ubuntu-latest
skip_javadoc: -Dmaven.javadoc.skip=true
skip_gpg: -Dgpg.skip=true
+ - os: macos-latest
+ skip_javadoc: -Dmaven.javadoc.skip=true
+ skip_gpg: -Dgpg.skip=true
env:
JDK_VERSION: ${{ matrix.jdk }}
steps:
- name: "Checkout ${{ github.ref }} ( ${{ github.sha }} )"
- uses: actions/checkout@v2
+ uses: actions/checkout@v3
with:
persist-credentials: false
- name: Cache local Maven repository
- uses: actions/cache@v2
+ uses: actions/cache@v3
with:
path: ~/.m2/repository
key: build-${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
@@ -61,6 +64,7 @@ jobs:
- 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}}
@@ -68,6 +72,9 @@ jobs:
- 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}}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@datasketches.apache.org
For additional commands, e-mail: commits-help@datasketches.apache.org