From 9cbe592ee911bd97ac8ab3a4e480b6b64bada867 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1t=C3=A9=20Cser=C3=A9p?= Date: Sat, 3 Feb 2024 17:29:42 +0100 Subject: [PATCH] Maximize disk space in parse GitHub Action job. Remove unused steps from CI. --- .github/scripts/ubuntu-20.04/postcompile_runtime.sh | 5 ----- .github/scripts/ubuntu-20.04/setup_runtime.sh | 7 ------- .github/scripts/ubuntu-22.04/postcompile_runtime.sh | 5 ----- .github/workflows/ci.yml | 12 ++++-------- 4 files changed, 4 insertions(+), 25 deletions(-) delete mode 100755 .github/scripts/ubuntu-20.04/postcompile_runtime.sh delete mode 100755 .github/scripts/ubuntu-20.04/setup_runtime.sh delete mode 100755 .github/scripts/ubuntu-22.04/postcompile_runtime.sh diff --git a/.github/scripts/ubuntu-20.04/postcompile_runtime.sh b/.github/scripts/ubuntu-20.04/postcompile_runtime.sh deleted file mode 100755 index 35a91b21d..000000000 --- a/.github/scripts/ubuntu-20.04/postcompile_runtime.sh +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/bash - -# Post compilation configuration for runtime (environmental variables, library location settings etc..) - -echo "LD_LIBRARY_PATH=${INSTALL_PATH}/thrift/lib:$LD_LIBRARY_PATH" >> $GITHUB_ENV \ No newline at end of file diff --git a/.github/scripts/ubuntu-20.04/setup_runtime.sh b/.github/scripts/ubuntu-20.04/setup_runtime.sh deleted file mode 100755 index ac9934c23..000000000 --- a/.github/scripts/ubuntu-20.04/setup_runtime.sh +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/bash - -# Install required packages for CodeCompass runtime -sudo apt-get install -y git cmake make g++ graphviz \ - libboost-filesystem1.71.0 libboost-log1.71.0 libboost-program-options1.71.0 \ - libllvm11 clang-11 libclang1-11 default-jre libssl1.1 libmagic1 \ - libgit2-28 ctags googletest libldap-2.4-2 diff --git a/.github/scripts/ubuntu-22.04/postcompile_runtime.sh b/.github/scripts/ubuntu-22.04/postcompile_runtime.sh deleted file mode 100755 index 193b32e37..000000000 --- a/.github/scripts/ubuntu-22.04/postcompile_runtime.sh +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/bash - -# Post compilation configuration for runtime (environmental variables, library location settings etc..) - -echo "LD_LIBRARY_PATH=${INSTALL_PATH}/odb/lib:$LD_LIBRARY_PATH" >> $GITHUB_ENV \ No newline at end of file diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a15f73fec..e6117ab71 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -206,6 +206,10 @@ jobs: - 5432:5432 steps: + # Clean up docker images to save space + - name: Clean up docker images + run: docker image prune -a -f + - uses: actions/checkout@v3 - name: Update apt-get @@ -239,14 +243,6 @@ jobs: ${{ matrix.os }}-compile-install-${{ needs.build.outputs.ubuntu-20-04-compile-hash-key }} ${{ matrix.os }}-compile-install-${{ needs.build.outputs.ubuntu-22-04-compile-hash-key }} - - name: Post compilation configuration (runtime) - if: ${{ env.HAS_COMPILED_DEPENDENCIES == 'true' }} - run: | - if [ -f ./.github/scripts/${{ matrix.os }}/postcompile_runtime.sh ]; then - chmod +x ./.github/scripts/${{ matrix.os }}/postcompile_runtime.sh - ./.github/scripts/${{ matrix.os }}/postcompile_runtime.sh - fi - - name: Download CodeCompass binaries uses: actions/download-artifact@v2 with: