From 9de9d1025f801a18e41e7af65a67cbe8878a15ea Mon Sep 17 00:00:00 2001 From: Iyk Azorji Date: Thu, 19 Dec 2024 11:19:15 -0500 Subject: [PATCH] feat: add build step to clear up disk space before building --- .github/workflows/on-pull-request.yml | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/.github/workflows/on-pull-request.yml b/.github/workflows/on-pull-request.yml index d9851a82f6..7e8ae785c5 100644 --- a/.github/workflows/on-pull-request.yml +++ b/.github/workflows/on-pull-request.yml @@ -5,7 +5,7 @@ on: jobs: enforce_title: name: Enforce PR Title Format - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 steps: - name: "Checkout files" uses: actions/checkout@v3 @@ -24,7 +24,7 @@ jobs: lint: name: Lint - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 permissions: contents: read pull-requests: write @@ -61,7 +61,7 @@ jobs: build_and_lint_and_test: name: Build and Test - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 env: OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} API_KEY: ${{ secrets.API_KEY }} @@ -97,8 +97,18 @@ jobs: run: df -h shell: bash - - name: Delete Temp Files - run: sudo rm -rf /tmp/* + - name: Free disk space before build + run: | + echo "Disk space before cleanup:" + df -h + sudo rm -rf /usr/local/.ghcup + sudo rm -rf /opt/hostedtoolcache/CodeQL + sudo rm -rf /usr/local/lib/android/sdk/ndk + sudo rm -rf /opt/ghc + sudo rm -rf /usr/local/share/boost + sudo apt-get clean + echo "Disk space after cleanup:" + df -h - name: Build Libraries env: