summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJiayu Liu <Jimexist@users.noreply.github.com>2023-04-14 23:57:33 +0800
committerGitHub <noreply@github.com>2023-04-14 23:57:33 +0800
commit1e3d90d8fd4160d538b7a4d902169eae5155e08a (patch)
tree1e6d7a39a045f4a5fd112eea8fb4526d7c847f9e
parentbe73a570e29dce424c8f20b5a31c21249303c5c3 (diff)
downloadthrift-1e3d90d8fd4160d538b7a4d902169eae5155e08a.tar.gz
update .github workflow to consolidate config (#2786)
* update .github workflow to consolidate config * rust => rs
-rw-r--r--.github/workflows/build.yml128
1 files 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: