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

jiayuliu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/thrift.git


The following commit(s) were added to refs/heads/master by this push:
     new 1e3d90d8f update .github workflow to consolidate config (#2786)
1e3d90d8f is described below

commit 1e3d90d8fd4160d538b7a4d902169eae5155e08a
Author: Jiayu Liu <[email protected]>
AuthorDate: Fri Apr 14 23:57:33 2023 +0800

    update .github workflow to consolidate config (#2786)
    
    * update .github workflow to consolidate config
    
    * rust => rs
---
 .github/workflows/build.yml | 128 ++++++++++----------------------------------
 1 file changed, 29 insertions(+), 99 deletions(-)

diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index caeaf16c5..9e164619c 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -8,6 +8,31 @@ on:
 
 env:
   BUILD_DEPS: automake bison flex git libboost-all-dev libevent-dev libssl-dev 
libtool make pkg-config
+  CONFIG_ARGS_FOR_LIBS: >
+    --disable-debug
+    --disable-tests
+    --disable-dependency-tracking
+    --without-cpp
+    --without-c_glib
+    --without-java
+    --without-kotlin
+    --without-python
+    --without-py3
+    --without-ruby
+    --without-haxe
+    --without-netstd
+    --without-perl
+    --without-php
+    --without-php_extension
+    --without-dart
+    --without-erlang
+    --without-go
+    --without-d
+    --without-nodejs
+    --without-nodets
+    --without-lua
+    --without-rs
+    --without-swift
 
 permissions:
   contents: read
@@ -76,30 +101,7 @@ jobs:
 
       - name: Run configure
         run: |
-          ./configure \
-            --disable-debug \
-            --disable-dependency-tracking \
-            --without-cpp \
-            --without-c_glib \
-            --without-java \
-            --without-kotlin \
-            --without-python \
-            --without-py3 \
-            --without-ruby \
-            --without-haxe \
-            --without-netstd \
-            --without-perl \
-            --without-php \
-            --without-php_extension \
-            --without-dart \
-            --without-erlang \
-            --with-go \
-            --without-d \
-            --without-nodejs \
-            --without-nodets \
-            --without-lua \
-            --without-rs \
-            --without-swift
+          ./configure $(echo $CONFIG_ARGS_FOR_LIBS | sed 
's/without-go/with-go/')
 
       - uses: actions/download-artifact@v3
         with:
@@ -177,31 +179,7 @@ jobs:
 
       - name: Run configure
         run: |
-          ./configure \
-            --disable-debug \
-            --disable-tests \
-            --disable-dependency-tracking \
-            --without-cpp \
-            --without-c_glib \
-            --with-java \
-            --with-kotlin \
-            --without-python \
-            --without-py3 \
-            --without-ruby \
-            --without-haxe \
-            --without-netstd \
-            --without-perl \
-            --without-php \
-            --without-php_extension \
-            --without-dart \
-            --without-erlang \
-            --without-go \
-            --without-d \
-            --without-nodejs \
-            --without-nodets \
-            --without-lua \
-            --without-rs \
-            --without-swift
+          ./configure $(echo $CONFIG_ARGS_FOR_LIBS | sed 
's/without-java/with-java/' | sed 's/without-kotlin/with-kotlin/')
 
       - uses: actions/download-artifact@v3
         with:
@@ -276,31 +254,7 @@ jobs:
 
       - name: Run configure
         run: |
-          ./configure \
-            --disable-debug \
-            --disable-tests \
-            --disable-dependency-tracking \
-            --without-cpp \
-            --without-c_glib \
-            --without-java \
-            --without-kotlin \
-            --without-python \
-            --without-py3 \
-            --without-ruby \
-            --without-haxe \
-            --without-netstd \
-            --without-perl \
-            --without-php \
-            --without-php_extension \
-            --without-dart \
-            --without-erlang \
-            --without-go \
-            --without-d \
-            --without-nodejs \
-            --without-nodets \
-            --without-lua \
-            --without-rs \
-            --with-swift
+          ./configure $(echo $CONFIG_ARGS_FOR_LIBS | sed 
's/without-swift/with-swift/')
 
       - uses: actions/download-artifact@v3
         with:
@@ -353,31 +307,7 @@ jobs:
 
       - name: Run configure
         run: |
-          ./configure \
-            --disable-debug \
-            --disable-tests \
-            --disable-dependency-tracking \
-            --without-cpp \
-            --without-c_glib \
-            --without-java \
-            --without-kotlin \
-            --without-python \
-            --without-py3 \
-            --without-ruby \
-            --without-haxe \
-            --without-netstd \
-            --without-perl \
-            --without-php \
-            --without-php_extension \
-            --without-dart \
-            --without-erlang \
-            --without-go \
-            --without-d \
-            --without-nodejs \
-            --without-nodets \
-            --without-lua \
-            --with-rs \
-            --without-swift
+          ./configure $(echo $CONFIG_ARGS_FOR_LIBS | sed 
's/without-rs/with-rs/')
 
       - uses: actions/download-artifact@v3
         with:

Reply via email to