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/13 20:09:23 UTC
[incubator-nlpcraft] 01/01: WIP on Github Actions setup.
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
commit c958f49e3c4356cae26ef0009ac7ccc8071a4dd2
Author: smakov <sm...@apache.org>
AuthorDate: Wed May 13 23:09:08 2020 +0300
WIP on Github Actions setup.
---
.github/workflows/main-build.yml | 39 +++++++++++++++++++++++++++++++++++++++
1 file changed, 39 insertions(+)
diff --git a/.github/workflows/main-build.yml b/.github/workflows/main-build.yml
new file mode 100644
index 0000000..66f24da
--- /dev/null
+++ b/.github/workflows/main-build.yml
@@ -0,0 +1,39 @@
+name: NLPCraft Build
+
+on:
+ push:
+ branches:
+ - "github-actions"
+
+jobs:
+ build:
+ # Disable build if commit message contains [ci skip] or [skip ci].
+ if: "!contains(toJSON(github.event.commits.*.message), '[skip ci]') && !contains(toJSON(github.event.commits.*.message), '[ci skip]')"
+
+ 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
+ run: './mvnw clean verify'