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

smakov pushed a commit to branch github-actions
in repository https://gitbox.apache.org/repos/asf/incubator-nlpcraft.git


The following commit(s) were added to refs/heads/github-actions by this push:
     new d42e9de  WIP on Github Actions setup.
d42e9de is described below

commit d42e9dedbb5807e8c45b660d2c056152123acf5f
Author: smakov <[email protected]>
AuthorDate: Tue May 19 13:35:34 2020 +0300

    WIP on Github Actions setup.
---
 .github/workflows/build.yml | 30 ++++++++++++++++++++++++------
 1 file changed, 24 insertions(+), 6 deletions(-)

diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index f90af24..fee64fb 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -1,9 +1,21 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#      http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
 name: build
 
-on:
-  push:
-    branches:
-      - "github-actions"
+on: [push, pull_request]
 
 jobs:
   build:
@@ -11,7 +23,7 @@ jobs:
 
     strategy:
       matrix:
-        os: [ubuntu-latest]
+        os: [ubuntu-latest, windows-latest]
         java: [8, 11]
 
     runs-on: ${{matrix.os}}
@@ -32,5 +44,11 @@ jobs:
           key: ${{runner.os}}-m2-${{hashFiles('**/pom.xml')}}
           restore-keys: ${{runner.os}}-m2
 
-      - name: Build
+      - name: Build (Linux)
+        if: ${{matrix.os == 'ubuntu-latest'}}
         run: 'mvn -B clean verify'
+
+      - name: Build (Windows)
+        if: ${{matrix.os == 'windows-latest'}}
+        # Build only, no tests because of memory limits.
+        run: 'mvn -B clean package -DskipTests=true'

Reply via email to