Skip to content

Commit

Permalink
Free up space for SonarCloud job (#2315)
Browse files Browse the repository at this point in the history
https://github.com/marketplace/actions/maximize-build-disk-space

```
Run df -h
Filesystem      Size  Used Avail Use% Mounted on
...
/dev/mapper/buildvg-buildlv   85G   24K   85G   1% /home/runner/work/Antares_Simulator/Antares_Simulator
```
Nice
  • Loading branch information
flomnes authored Aug 12, 2024
1 parent 07d1dab commit c02af5d
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/sonarcloud.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,18 @@ jobs:
BUILD_WRAPPER_OUT_DIR: ${{ github.workspace }}/_build/output # Directory where build-wrapper output will be placed

steps:
# Disk space on / is insufficient, leading to errors
# We use this 'hack' to remove unused stuff (android, dotnet, etc.) and change partition layout
- name: Maximize build space
uses: easimon/maximize-build-space@v10
with:
root-reserve-mb: 5120
swap-size-mb: 1024
remove-dotnet: true
remove-android: true
remove-haskell: true
remove-codeql: true

- uses: actions/checkout@v4
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
Expand Down

0 comments on commit c02af5d

Please sign in to comment.