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/07/04 12:19:01 UTC

[rocketmq-clients] branch master updated: Golang: add github action (#28)

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


The following commit(s) were added to refs/heads/master by this push:
     new 75279e1  Golang: add github action (#28)
75279e1 is described below

commit 75279e1ee5a8cc8bbfcc50dfa909e756f2cc99f2
Author: Aaron Ai <ya...@gmail.com>
AuthorDate: Mon Jul 4 20:18:57 2022 +0800

    Golang: add github action (#28)
---
 .github/workflows/golang_build.yml | 20 ++++++++++++++++++++
 .github/workflows/java_build.yml   |  2 +-
 README.md                          |  1 +
 3 files changed, 22 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/golang_build.yml b/.github/workflows/golang_build.yml
new file mode 100644
index 0000000..0212df2
--- /dev/null
+++ b/.github/workflows/golang_build.yml
@@ -0,0 +1,20 @@
+name: Golang Build
+on: [push, pull_request]
+jobs:
+  cpp_build:
+    name: "Golang (${{ matrix.os }}, Go ${{ matrix.go }})"
+    runs-on: ${{ matrix.os }}
+    strategy:
+      matrix:
+        os: [ubuntu-18.04]
+        go: [1.17]
+    steps:
+      - name: Checkout
+        uses: actions/checkout@v2
+      - name: Set up Golang ${{ matrix.go }}
+        uses: actions/setup-go@v2
+        with:
+          go-version: ${{ matrix.go }}
+      - name: Build
+        working-directory: ./golang
+        run: go build
diff --git a/.github/workflows/java_build.yml b/.github/workflows/java_build.yml
index 4901d0a..2e79258 100644
--- a/.github/workflows/java_build.yml
+++ b/.github/workflows/java_build.yml
@@ -2,7 +2,7 @@ name: Java Build
 on: [push, pull_request]
 jobs:
   java_build:
-    name: "Java (${{ matrix.os }} JDK-${{ matrix.jdk }})"
+    name: "Java (${{ matrix.os }}, JDK-${{ matrix.jdk }})"
     runs-on: ${{ matrix.os }}
     strategy:
       matrix:
diff --git a/README.md b/README.md
index 10b4a45..0025a6b 100644
--- a/README.md
+++ b/README.md
@@ -4,6 +4,7 @@
 [![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)
+[![Golang](https://github.com/apache/rocketmq-clients/actions/workflows/golang_build.yml/badge.svg)](https://github.com/apache/rocketmq-clients/actions/workflows/golang_build.yml)
 
 ## Overview