You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nlpcraft.apache.org by sm...@apache.org on 2020/05/22 07:49:11 UTC

[incubator-nlpcraft] branch master updated: Enable Github Actions.

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

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


The following commit(s) were added to refs/heads/master by this push:
     new 93fc9d1  Enable Github Actions.
93fc9d1 is described below

commit 93fc9d18fb38324ae039109495f471967afee571
Author: smakov <sm...@apache.org>
AuthorDate: Fri May 22 10:48:52 2020 +0300

    Enable Github Actions.
---
 .github/workflows/build.yml | 60 +++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 60 insertions(+)

diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
new file mode 100644
index 0000000..06387e9
--- /dev/null
+++ b/.github/workflows/build.yml
@@ -0,0 +1,60 @@
+# 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:
+      - master
+  pull_request:
+    branches:
+      - master
+
+jobs:
+  build:
+    name: "Build on JDK ${{matrix.java}} (${{matrix.os}})"
+
+    strategy:
+      matrix:
+        os: [ubuntu-latest, windows-latest]
+        java: [8, 11]
+
+    runs-on: ${{matrix.os}}
+
+    steps:
+      - name: Checkout
+        uses: actions/checkout@v2
+
+      - name: Set up JDK
+        uses: actions/setup-java@v1
+        with:
+          java-version: ${{matrix.java}}
+
+      - name: Cache Maven packages
+        uses: actions/cache@v1
+        with:
+          path: ~/.m2
+          key: ${{runner.os}}-m2-${{hashFiles('**/pom.xml')}}
+          restore-keys: ${{runner.os}}-m2
+
+      - 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'