Skip to content

Commit

Permalink
install thrift 0.13
Browse files Browse the repository at this point in the history
  • Loading branch information
acelyc111 committed Dec 23, 2023
1 parent c5cdcce commit 3318a3c
Showing 1 changed file with 22 additions and 4 deletions.
26 changes: 22 additions & 4 deletions .github/workflows/lint_and_test_go-client.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,19 @@ jobs:
ARTIFACT_NAME: release_for_go_client
BUILD_OPTIONS: -t release --compiler clang-10,clang++-10
container:
image: apache/pegasus:thirdparties-bin-ubuntu2004-${{ github.base_ref }}
image: apache/pegasus:thirdparties-bin-test-ubuntu2204-${{ github.base_ref }}
steps:
- name: Install thrift
run: |
export THRIFT_VERSION=0.13.0
wget --progress=dot:giga https://github.com/apache/thrift/archive/refs/tags/v${THRIFT_VERSION}.tar.gz
tar -xzf v${THRIFT_VERSION}.tar.gz
cd thrift-${THRIFT_VERSION}
./bootstrap.sh
./configure --enable-libs=no
make -j $(nproc)
make install
cd - && rm -rf thrift-${THRIFT_VERSION} v${THRIFT_VERSION}.tar.gz
- uses: actions/checkout@v3
- uses: "./.github/actions/rebuild_thirdparty_if_needed"
- uses: "./.github/actions/build_pegasus"
Expand All @@ -84,12 +95,19 @@ jobs:
env:
ARTIFACT_NAME: release_for_go_client
container:
image: apache/pegasus:thirdparties-bin-ubuntu2004-${{ github.base_ref }}
image: apache/pegasus:thirdparties-bin-test-ubuntu2204-${{ github.base_ref }}
steps:
- name: Install thrift
run: |
apt-get update
apt-get install -y thrift-compiler
export THRIFT_VERSION=0.13.0
wget --progress=dot:giga https://github.com/apache/thrift/archive/refs/tags/v${THRIFT_VERSION}.tar.gz
tar -xzf v${THRIFT_VERSION}.tar.gz
cd thrift-${THRIFT_VERSION}
./bootstrap.sh
./configure --enable-libs=no
make -j $(nproc)
make install
cd - && rm -rf thrift-${THRIFT_VERSION} v${THRIFT_VERSION}.tar.gz
- name: Checkout
uses: actions/checkout@v3
- name: Set up Go
Expand Down

0 comments on commit 3318a3c

Please sign in to comment.