From c0c7fd9a96c7f674b86a4955e5ae6f0d86dc15ec 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. --- .../ubuntu-20.04/postcompile_runtime.sh | 5 ----- .github/scripts/ubuntu-20.04/setup_runtime.sh | 7 ------- .../ubuntu-22.04/postcompile_runtime.sh | 5 ----- .github/workflows/ci.yml | 19 +++++++++++-------- 4 files changed, 11 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..f9e385d86 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -206,6 +206,17 @@ jobs: - 5432:5432 steps: + - name: Maximize free disk space + uses: easimon/maximize-build-space@v10 + with: + root-reserve-mb: 2000 + temp-reserve-mb: 100 + swap-size-mb: 500 + remove-android: 'true' + remove-haskell: 'true' + remove-codeql: 'true' + remove-docker-images: 'true' + - uses: actions/checkout@v3 - name: Update apt-get @@ -239,14 +250,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: