You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by aa...@apache.org on 2022/06/18 04:03:04 UTC

[rocketmq-clients] 01/01: Add Github badge

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

aaronai pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/rocketmq-clients.git

commit e3352d413b32c3345d1857add132d7ac3cb114d0
Author: Aaron Ai <ya...@gmail.com>
AuthorDate: Sat Jun 18 11:37:07 2022 +0800

    Add Github badge
---
 .github/workflows/cpp_build.yml    | 19 ++++++++++++++
 .github/workflows/csharp_build.yml | 21 +++++++++++++++
 .github/workflows/java_build.yml   | 19 ++++++++++++++
 .github/workflows/main.yml         | 52 --------------------------------------
 README.md                          |  5 ++++
 5 files changed, 64 insertions(+), 52 deletions(-)

diff --git a/.github/workflows/cpp_build.yml b/.github/workflows/cpp_build.yml
new file mode 100644
index 0000000..9b95b03
--- /dev/null
+++ b/.github/workflows/cpp_build.yml
@@ -0,0 +1,19 @@
+name: CPP Build
+on: [push, pull_request]
+jobs:
+  cpp_build:
+    name: CPP Build Job
+    runs-on: ubuntu-latest
+    steps:
+      - uses: actions/checkout@v2
+      - name: Setup Bazel
+        run: |
+          sudo apt-get -qq install npm
+          sudo npm install -g @bazel/bazelisk
+      - name: Use Bazel
+        if: matrix.os != 'windows'
+        working-directory: ./cpp
+        run: bazel -h
+      - name: Compile All Targets
+        working-directory: ./cpp
+        run: bazel build //...
diff --git a/.github/workflows/csharp_build.yml b/.github/workflows/csharp_build.yml
new file mode 100644
index 0000000..df5db33
--- /dev/null
+++ b/.github/workflows/csharp_build.yml
@@ -0,0 +1,21 @@
+name: C# Build
+on: [push, pull_request]
+jobs:
+  c_sharp_build:
+    name: C# Build Job
+    runs-on: ubuntu-latest
+    steps:
+      - name: Checkout 
+        uses: actions/checkout@v2
+      - name: Setup dotnet
+        uses: actions/setup-dotnet@v1
+        with:
+          dotnet-version: | 
+            5.0.x
+            6.0.x
+      - name: Build artifacts
+        working-directory: ./csharp
+        run: |
+          dotnet --version
+          dotnet build
+
diff --git a/.github/workflows/java_build.yml b/.github/workflows/java_build.yml
new file mode 100644
index 0000000..2fa867a
--- /dev/null
+++ b/.github/workflows/java_build.yml
@@ -0,0 +1,19 @@
+name: Java Build
+on: [push, pull_request]
+jobs:
+  java_build:
+    name: Java Build Job
+    runs-on: ubuntu-latest
+    steps:
+    - name: Checkout
+      uses: actions/checkout@v2
+    - name: Set up JDK 11
+      uses: actions/setup-java@v2
+      with:
+        java-version: '11'
+        distribution: 'adopt'
+        cache: maven
+    - name: Build with Maven
+      working-directory: ./java
+      run: mvn -B package --file pom.xml
+
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
deleted file mode 100644
index 7fb18dc..0000000
--- a/.github/workflows/main.yml
+++ /dev/null
@@ -1,52 +0,0 @@
-name: CI
-on: [push, pull_request]
-jobs:
-  cpp_build:
-    name: CPP build
-    runs-on: ubuntu-latest
-    steps:
-      - uses: actions/checkout@v2
-      - name: Setup Bazel
-        run: |
-          sudo apt-get -qq install npm
-          sudo npm install -g @bazel/bazelisk
-      - name: Use Bazel
-        if: matrix.os != 'windows'
-        working-directory: ./cpp
-        run: bazel -h
-      - name: Compile All Targets
-        working-directory: ./cpp
-        run: bazel build //...
-  c_sharp_build:
-    name: C# build
-    runs-on: ubuntu-latest
-    steps:
-      - name: Checkout 
-        uses: actions/checkout@v2
-      - name: Setup dotnet
-        uses: actions/setup-dotnet@v1
-        with:
-          dotnet-version: | 
-            5.0.x
-            6.0.x
-      - name: Build artifacts
-        working-directory: ./csharp
-        run: |
-          dotnet --version
-          dotnet build
-  java_build:
-    name: Java build
-    runs-on: ubuntu-latest
-    steps:
-    - name: Checkout
-      uses: actions/checkout@v2
-    - name: Set up JDK 11
-      uses: actions/setup-java@v2
-      with:
-        java-version: '11'
-        distribution: 'adopt'
-        cache: maven
-    - name: Build with Maven
-      working-directory: ./java
-      run: mvn -B package --file pom.xml
-
diff --git a/README.md b/README.md
index 6b8c664..2591238 100644
--- a/README.md
+++ b/README.md
@@ -1,5 +1,10 @@
 # RocketMQ Clients - Collection of Polyglot Clients for Apache RocketMQ
 
+[![License](https://img.shields.io/badge/license-Apache%202-4EB1BA.svg)](https://www.apache.org/licenses/LICENSE-2.0.html)
+[![CPP](https://github.com/apache/rocketmq-clients/actions/workflows/cpp_build.yml/badge.svg)](https://github.com/apache/rocketmq-clients/actions/workflows/cpp_build.yml)
+[![C#](https://github.com/apache/rocketmq-clients/actions/workflows/csharp_build.yml/badge.svg)](https://github.com/apache/rocketmq-clients/actions/workflows/csharp_build.yml)
+[![Java](https://github.com/apache/rocketmq-clients/actions/workflows/java_build.yml/badge.svg)](https://github.com/apache/rocketmq-clients/actions/workflows/java_build.yml)
+
 ## Overview
 
 Polyglot solution of clients for [Apache RocketMQ](https://rocketmq.apache.org/), and both of them follow the specification of [rocketmq-apis](https://github.com/apache/rocketmq-apis), replace the previous protocol based on `RemotingCommand` by [Protocol Buffers](https://developers.google.com/protocol-buffers) and [gRPC](https://grpc.io/). Apart from that, APIs from clients of different languages share the same model and semantics.