You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by li...@apache.org on 2022/07/01 08:33:46 UTC

[rocketmq-clients] branch cpp updated: Use matrix

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

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


The following commit(s) were added to refs/heads/cpp by this push:
     new 75ea90f  Use matrix
75ea90f is described below

commit 75ea90ff7763da3cb9f74416cdef72b721ccd96e
Author: Li Zhanhui <li...@gmail.com>
AuthorDate: Fri Jul 1 16:33:37 2022 +0800

    Use matrix
---
 .github/workflows/cpp_build.yml | 58 +++++------------------------------------
 1 file changed, 6 insertions(+), 52 deletions(-)

diff --git a/.github/workflows/cpp_build.yml b/.github/workflows/cpp_build.yml
index d56cf36..a09c782 100644
--- a/.github/workflows/cpp_build.yml
+++ b/.github/workflows/cpp_build.yml
@@ -1,59 +1,13 @@
 name: CPP Build
 on: [push, pull_request]
 jobs:
-  cpp_ubuntu_18_04:
-    name: Ubuntu 18.04
-    runs-on: ubuntu-18.04
+  cpp:
+    strategy:
+      matrix:
+        os: [ubuntu-18.04, ubuntu-20.04, ubuntu-22.04, macos-12,  macos-11, windows-2019]
+    runs-on: ${{ matrix.os }}
     steps:
       - uses: actions/checkout@v2
       - name: Compile All Targets
         working-directory: ./cpp
-        run: bazel build //...
-  cpp_ubuntu_20_04:
-      name: Ubuntu 20.04
-      runs-on: ubuntu-20.04
-      steps:
-        - uses: actions/checkout@v2
-        - name: Compile All Targets
-          working-directory: ./cpp
-          run: bazel build //...
-  cpp_ubuntu_22_04:
-      name: Ubuntu 22.04
-      runs-on: ubuntu-22.04
-      steps:
-        - uses: actions/checkout@v2
-        - name: Compile All Targets
-          working-directory: ./cpp
-          run: bazel build //...
-  cpp_macos_12:
-      name: MacOS 12
-      runs-on: macos-12
-      steps:
-        - uses: actions/checkout@v2
-        - name: Compile All Targets
-          working-directory: ./cpp
-          run: bazel build //...
-  cpp_macos_11:
-      name: MacOS 11
-      runs-on: macos-11
-      steps:
-        - uses: actions/checkout@v2
-        - name: Compile All Targets
-          working-directory: ./cpp
-          run: bazel build //...          
-  cpp_windows_2022:
-      name: Windows 2022
-      runs-on: windows-2022
-      steps:
-        - uses: actions/checkout@v2
-        - name: Compile All Targets
-          working-directory: ./cpp
-          run: bazel build //...          
-  cpp_windows_2019:
-      name: Windows 2019
-      runs-on: windows-2019
-      steps:
-        - uses: actions/checkout@v2
-        - name: Compile All Targets
-          working-directory: ./cpp
-          run: bazel build //...          
\ No newline at end of file
+        run: bazel build //...
\ No newline at end of file