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

wangdan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-pegasus.git


The following commit(s) were added to refs/heads/master by this push:
     new c5a01c1f4 chore(github): free disk space for daily building on github 
(#1586)
c5a01c1f4 is described below

commit c5a01c1f41e762fbfd42df6e0ea7d3ccdec60f02
Author: Dan Wang <[email protected]>
AuthorDate: Mon Aug 28 14:44:24 2023 +0800

    chore(github): free disk space for daily building on github (#1586)
    
    https://github.com/apache/incubator-pegasus/issues/1585
    
    Free more disk space for daily building cpp by referring to
    https://github.com/apache/incubator-pegasus/pull/1577.
    
    Test has been run manually on [Lint and build regularly](https://github.com/
    apache/incubator-pegasus/actions/workflows/regular-build.yml)
    for the branch [free-regular-disk-space](https://github.com/apache/
    incubator-pegasus/tree/free-regular-disk-space).
---
 .github/workflows/regular-build.yml | 17 +++++++++++++++--
 1 file changed, 15 insertions(+), 2 deletions(-)

diff --git a/.github/workflows/regular-build.yml 
b/.github/workflows/regular-build.yml
index 798b28e3a..9e9a0d06f 100644
--- a/.github/workflows/regular-build.yml
+++ b/.github/workflows/regular-build.yml
@@ -75,14 +75,27 @@ jobs:
         working-directory: /root
         run: |
           git clone -b ${{ github.ref_name }} --depth=1 
https://github.com/apache/incubator-pegasus.git
+      - name: Free Disk Space (Ubuntu)
+        run: |
+          .github/workflows/free_disk_space.sh
       - name: Unpack prebuilt third-parties
         run: |
+          rm -f /root/thirdparties-src.zip
           unzip /root/thirdparties-bin.zip -d ./thirdparty
           rm -f /root/thirdparties-bin.zip
+          find ./thirdparty -name '*CMakeFiles*' -type d -exec rm -rf "{}" +
+          rm -rf ./thirdparty/hadoop-bin/share/doc
+          rm -rf ./thirdparty/zookeeper-bin/docs
       - name: Compilation Pegasus
-        run: ./run.sh build --test --compiler ${{ matrix.compiler }} 
--skip_thirdparty -j $(nproc)
+        run: |
+          ./run.sh build --test --compiler ${{ matrix.compiler }} 
--skip_thirdparty -j $(nproc)
+      - name: Clear Build Files
+        run: |
+          find ./build/latest/src/ -name '*CMakeFiles*' -type d -exec rm -rf 
"{}" +
       - name: Packaging Server
-        run: ./run.sh pack_server
+        run: |
+          ./run.sh pack_server
+          rm -rf pegasus-server-*
 
   build_and_lint_go:
     name: Build and Lint Golang


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

Reply via email to