You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by yi...@apache.org on 2022/12/02 02:14:26 UTC

[doris] branch branch-1.1-lts updated: [fix] avoid build extension (#14741)

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

yiguolei pushed a commit to branch branch-1.1-lts
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/branch-1.1-lts by this push:
     new f437fa9444 [fix] avoid build extension (#14741)
f437fa9444 is described below

commit f437fa94445d25a4e2cb6abf64eba34449ea8208
Author: Mingyu Chen <mo...@163.com>
AuthorDate: Fri Dec 2 10:14:18 2022 +0800

    [fix] avoid build extension (#14741)
    
    * [fix] avoid build extension
    
    * add submodule
    
    * add module
---
 .github/actions/paths-filter          |  1 +
 .github/workflows/build-extension.yml | 80 ++++++++++++++++++++---------------
 .gitmodules                           |  3 ++
 3 files changed, 51 insertions(+), 33 deletions(-)

diff --git a/.github/actions/paths-filter b/.github/actions/paths-filter
new file mode 160000
index 0000000000..4512585405
--- /dev/null
+++ b/.github/actions/paths-filter
@@ -0,0 +1 @@
+Subproject commit 4512585405083f25c027a35db413c2b3b9006d50
diff --git a/.github/workflows/build-extension.yml b/.github/workflows/build-extension.yml
index 2270746989..7485886942 100644
--- a/.github/workflows/build-extension.yml
+++ b/.github/workflows/build-extension.yml
@@ -17,45 +17,59 @@
 #
 ---
 name: Build Extensions
+
 on:
   pull_request:
-  push:
+
+concurrency:
+  group: ${{ github.ref }} (Build Extensions)
+  cancel-in-progress: true
 
 jobs:
-  build-extension:
-    name: "Build Extensions"
+  changes:
+    name: Detect Changes
     runs-on: ubuntu-latest
-    defaults:
-      run:
-        shell: bash
+    outputs:
+      broker_changes: ${{ steps.filter.outputs.broker_changes }}
+      docs_changes: ${{ steps.filter.outputs.docs_changes }}
     steps:
-    - name: Checkout
-      uses: actions/checkout@master
-
-    - name: Setup Node.js
-      uses: actions/setup-node@v1
-      with:
-        node-version: 14.16.1
-
-    - name: Setup java
-      uses: actions/setup-java@v2
-      with:
-        distribution: adopt
-        java-version: '8'
+      - name: Checkout ${{ github.ref }}
+        uses: actions/checkout@v3
+        with:
+          persist-credentials: false
+          submodules: recursive
 
-    - name: Setup thrift
-      run: |
-        sudo apt-get update
-        sudo DEBIAN_FRONTEND=noninteractive apt-get install -y thrift-compiler=0.13.0-2build2
-        thrift --version
-        mkdir -p thirdparty/installed/bin/
-        cd thirdparty/installed/bin/ && ln -s /usr/bin/thrift thrift
-
-    - name: Build broker
-      run: |
-        cd fs_brokers/apache_hdfs_broker/ && /bin/bash build.sh
+      - name: Paths filter
+        uses: ./.github/actions/paths-filter
+        id: filter
+        with:
+          filters: |
+            broker_changes:
+              - 'fs_brokers/**'
+            docs_changes:
+              - 'docs/**'
+  build-broker:
+    name: Build Broker
+    needs: changes
+    if: ${{ needs.changes.outputs.broker_changes == 'true' }}
+    runs-on: ubuntu-latest
+    steps:
+      - name: Checkout ${{ github.ref }}
+        uses: actions/checkout@v3
 
-    - name: Build docs
-      run: |
-        cd docs && npm install && npm run build
+      - name: Setup java
+        uses: actions/setup-java@v2
+        with:
+          distribution: adopt
+          java-version: '8'
 
+      - name: Setup thrift
+        run: |
+          sudo apt-get update
+          sudo DEBIAN_FRONTEND=noninteractive apt-get install -y thrift-compiler=0.13.0-2build2
+          thrift --version
+          mkdir -p thirdparty/installed/bin/
+          cd thirdparty/installed/bin/ && ln -s /usr/bin/thrift thrift
+      - name: Build broker
+        run: |
+          cd fs_brokers/apache_hdfs_broker/ && /bin/bash build.sh
diff --git a/.gitmodules b/.gitmodules
index 9fe03a6f6a..b675978851 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -7,3 +7,6 @@
 [submodule ".github/actions/clang-format-lint-action"]
 	path = .github/actions/clang-format-lint-action
 	url = https://github.com/DoozyX/clang-format-lint-action.git
+[submodule ".github/actions/paths-filter"]
+	path = .github/actions/paths-filter
+	url = https://github.com/dorny/paths-filter


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org