Skip to content

Commit

Permalink
feat: add build step to clear up disk space before building
Browse files Browse the repository at this point in the history
  • Loading branch information
iykazrji committed Dec 19, 2024
1 parent 55bbb5a commit 9de9d10
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions .github/workflows/on-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -24,7 +24,7 @@ jobs:

lint:
name: Lint
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
permissions:
contents: read
pull-requests: write
Expand Down Expand Up @@ -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 }}
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 9de9d10

Please sign in to comment.