Skip to content

Commit

Permalink
Free space for CI (#152)
Browse files Browse the repository at this point in the history
* Update action.yml

* Update sanity-check.yml

* Update action.yml

* Update action.yml
  • Loading branch information
adrianboguszewski authored Jan 8, 2025
1 parent 7e76caf commit 14a1378
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
14 changes: 13 additions & 1 deletion .github/reusable-steps/setup-os/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion .github/workflows/sanity-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 14a1378

Please sign in to comment.