From 14a13787dc92d18489ccd0c6057546cb75d2767b Mon Sep 17 00:00:00 2001 From: Adrian Boguszewski Date: Wed, 8 Jan 2025 16:52:42 +0100 Subject: [PATCH] Free space for CI (#152) * Update action.yml * Update sanity-check.yml * Update action.yml * Update action.yml --- .github/reusable-steps/setup-os/action.yml | 14 +++++++++++++- .github/workflows/sanity-check.yml | 2 +- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/.github/reusable-steps/setup-os/action.yml b/.github/reusable-steps/setup-os/action.yml index eced173b..f812f49c 100644 --- a/.github/reusable-steps/setup-os/action.yml +++ b/.github/reusable-steps/setup-os/action.yml @@ -3,8 +3,20 @@ name: OS setup runs: using: 'composite' steps: - - name: Install coreutils + - name: Install coreutils (macOS only) if: runner.os == 'macOS' shell: bash run: | brew install coreutils + - name: Free space (Ubuntu only) + if: runner.os == 'Linux' + uses: jlumbroso/free-disk-space@v1.3.1 + with: + tool-cache: false + swap-storage: false + large-packages: false + + android: true + dotnet: true + haskell: true + docker-images: true diff --git a/.github/workflows/sanity-check.yml b/.github/workflows/sanity-check.yml index 0f94b016..81f0df8c 100644 --- a/.github/workflows/sanity-check.yml +++ b/.github/workflows/sanity-check.yml @@ -34,7 +34,7 @@ jobs: # Include the workflow file as a trigger for running all subprojects if [[ "${{ github.event_name }}" == "pull_request" ]]; then changed_files=$(git diff --name-only origin/master..HEAD) - if echo "$changed_files" | grep -q '.github/workflows/.*.yml'; then + if echo "$changed_files" | grep -q '.github/'; then # Workflow file changed; run all subprojects subproject_dirs=$(find demos notebooks -mindepth 1 -maxdepth 1 -type d ! -name utils | tr '\n' ' ') else