From 1e3d90d8fd4160d538b7a4d902169eae5155e08a Mon Sep 17 00:00:00 2001 From: Jiayu Liu Date: Fri, 14 Apr 2023 23:57:33 +0800 Subject: 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: -- cgit v1.2.1