You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by hx...@apache.org on 2020/12/08 16:59:18 UTC

[iotdb] 01/01: try to enable github action for cpp client

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

hxd pushed a commit to branch enable_cpp_github_action
in repository https://gitbox.apache.org/repos/asf/iotdb.git

commit b87fdfa8777a0a1ac2d2a46c1c66e7ca93a5d8f0
Author: xiangdong huang <sa...@gmail.com>
AuthorDate: Wed Dec 9 00:58:51 2020 +0800

    try to enable github action for cpp client
---
 .github/workflows/client-cpp.yml | 47 ++++++++++++++++++++++++++++++++++++++++
 1 file changed, 47 insertions(+)

diff --git a/.github/workflows/client-cpp.yml b/.github/workflows/client-cpp.yml
new file mode 100644
index 0000000..bc146bd
--- /dev/null
+++ b/.github/workflows/client-cpp.yml
@@ -0,0 +1,47 @@
+# This workflow will build a Java project with Maven
+# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
+
+name: C++ Client CI with Maven
+
+on:
+  push:
+    branches: 
+      - master
+      - 'rel/*'
+    paths-ignore:
+      - 'docs/**'
+  pull_request:
+    branches: 
+      - master
+      - 'rel/*'
+      - cluster_new
+    paths-ignore:
+      - 'docs/**'
+        
+jobs:
+  build:
+    strategy:
+      fail-fast: false
+      max-parallel: 20
+      matrix:
+        java: [11.0.x]
+        os: [ubuntu-latest, macos-latest, windows-latest]
+    runs-on: ${{ matrix.os}}
+
+    steps:
+      - uses: actions/checkout@v2
+      - name: Set up JDK ${{ matrix.java }}
+        uses: actions/setup-java@v1
+        with:
+          java-version: ${{ matrix.java }}
+      - name: Cache Maven packages
+        uses: actions/cache@v2
+        with:
+          path: ~/.m2
+          key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
+          restore-keys: ${{ runner.os }}-m2
+      - name: Check Apache Rat
+        run: mvn -B apache-rat:check
+      - name: Test with Maven
+        run:  mvn integration-test -P client-cpp -pl client-cpp,server -am -Diotdb.test.skip=true -Dtsfile.test.skip=true -Djdbc.test.skip=true
+