You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@datasketches.apache.org by jm...@apache.org on 2022/10/13 21:36:40 UTC

[datasketches-java] 01/01: try to get build+test workflow to run on windows and linux

This is an automated email from the ASF dual-hosted git repository.

jmalkin pushed a commit to branch test_windows
in repository https://gitbox.apache.org/repos/asf/datasketches-java.git

commit 330d7663399fb07291b18a05648c4fc35496f8d2
Author: jmalkin <78...@users.noreply.github.com>
AuthorDate: Thu Oct 13 14:36:24 2022 -0700

    try to get build+test workflow to run on windows and linux
---
 .github/workflows/test_os_matrix.yml | 30 ++++++++++++++++++++++--------
 1 file changed, 22 insertions(+), 8 deletions(-)

diff --git a/.github/workflows/test_os_matrix.yml b/.github/workflows/test_os_matrix.yml
index 4a671ded..2dfb1409 100644
--- a/.github/workflows/test_os_matrix.yml
+++ b/.github/workflows/test_os_matrix.yml
@@ -10,11 +10,25 @@ env:
 jobs:
     build:
         name: Build, Test, Coverage
-        runs-on: windows-latest
+        runs-on: ${{matrix.os.os_name}}
         strategy:
           fail-fast: false
           matrix:
               jdk: [ 8,11,12,13 ]
+	      os:
+	      - {
+	          name: "Windows",
+		  os_name: windows-latest
+		  skip_javadoc: `-Dmaven`.javadoc`.skip=true
+		  skip_gpg: `-Dgpg`.skip=true
+		}
+	      - {
+	          name: "Ubuntu",
+		  os_name: ubuntu-latest
+		  skip_javadoc: -Dmaven.javadoc.skip=true
+		  skip_gpg: -Dgpg.skip=true
+		}
+	          
 
         env:
           JDK_VERSION: ${{ matrix.jdk }}
@@ -47,19 +61,19 @@ jobs:
         - name: Test
           run: >
               mvn clean test
-              -Dmaven.javadoc.skip=true
-              -Dgpg.skip=true
+              ${{matrix.os.skip_javadoc}}
+              ${{matrix.os.skip_gpg}}
 
         - name: Install Dependencies
           run: >
               mvn clean install -B -V -q
-              -DskipTests=true
-              -Dgpg.skip=true
+              -D skipTests=true
+              ${{matrix.os.skip_gpg}}
 
         - 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
\ No newline at end of file
+              -D coveralls-repo-token=${repo_token}
+              ${{matrix.os.skip_javadoc}}
+              ${{matrix.os.skip_gpg}}
\ No newline at end of file


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@datasketches.apache.org
For additional commands, e-mail: commits-help@datasketches.apache.org