From 89613a8c86fdad159cb8f65e5006157d9d9368fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Laban?= Date: Tue, 26 Nov 2024 10:44:25 -0500 Subject: [PATCH] ci: use free-disk-space tool --- .github/workflows/codeql.yml | 35 ++++++++++++++++------------------- 1 file changed, 16 insertions(+), 19 deletions(-) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index fb44909e71d8..773d19c56005 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -61,26 +61,23 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 - - if: runner.os == 'Linux' - run: | - # This list is based on what the base image contains and - # may need to be adjusted as new software gets installed. - # Use the `du` command below to determine what can be - # uninstalled. + + - name: Free Disk Space (Ubuntu) + if: runner.os == 'Linux' + uses: jlumbroso/free-disk-space@54081f138730dfa15788a46383842cd2f914a1be #v1.3.1 + with: + # this might remove tools that are actually needed, + # if set to "true" but frees about 6 GB + tool-cache: false - rm -fR ~/.cargo - rm -fR ~/.rustup - rm -fR ~/.dotnet - sudo rm -fR /usr/share/swift - sudo rm -fR /opt/microsoft/msedge - sudo rm -fR /usr/local/.ghcup - sudo rm -fR /usr/lib/mono - sudo snap remove lxd - sudo snap remove core20 - sudo apt remove snapd - - df -h - # du -h -d 3 / + # all of these default to true, but feel free to set to + # "false" if necessary for your workflow + android: true + dotnet: false + haskell: true + large-packages: true + docker-images: true + swap-storage: true # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL