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

wangdan pushed a commit to branch fix-github-ubuntu-2004-runner-removed
in repository https://gitbox.apache.org/repos/asf/incubator-pegasus.git


The following commit(s) were added to 
refs/heads/fix-github-ubuntu-2004-runner-removed by this push:
     new c93d7b881 install thrift in workflow
c93d7b881 is described below

commit c93d7b88180d5cfa04ce85360ca2ac289f569348
Author: Dan Wang <[email protected]>
AuthorDate: Fri Apr 25 14:06:46 2025 +0800

    install thrift in workflow
---
 .github/workflows/lint_and_test_go-client.yml | 15 +++++++++++++--
 1 file changed, 13 insertions(+), 2 deletions(-)

diff --git a/.github/workflows/lint_and_test_go-client.yml 
b/.github/workflows/lint_and_test_go-client.yml
index 8a8916be0..f90e2f71a 100644
--- a/.github/workflows/lint_and_test_go-client.yml
+++ b/.github/workflows/lint_and_test_go-client.yml
@@ -62,9 +62,20 @@ jobs:
     # go-client imports thrift package of 0.13.0, so we must use 
thrift-compiler 0.13.0
     # to generate code as well. The thrift-compiler version on ubuntu-20.04 is 
0.13.0
     runs-on: ubuntu-latest
-    container:
-      image: apache/pegasus:build-env-ubuntu2204-${{ github.ref_name }}-go
+    #container:
+    #  image: apache/pegasus:build-env-ubuntu2204-${{ github.ref_name }}-go
     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
       - name: Checkout
         uses: actions/checkout@v4
       - name: Setup Go


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to