From abd8c878f765fbba290eb6061b0a5922fdebe33c Mon Sep 17 00:00:00 2001 From: rob thijssen Date: Fri, 12 Sep 2025 11:29:06 +0300 Subject: [PATCH] Add disk space cleanup action and integrate in CUDA workflow Ignore unrelated file changes in CUDA workflow triggers to reduce unnecessary runs --- .github/actions/disk/action.yml | 15 +++++++++++++++ .github/workflows/cuda-build.yml | 14 ++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 .github/actions/disk/action.yml diff --git a/.github/actions/disk/action.yml b/.github/actions/disk/action.yml new file mode 100644 index 0000000..580153c --- /dev/null +++ b/.github/actions/disk/action.yml @@ -0,0 +1,15 @@ +--- +name: free disk space +description: when rust compiling, free up some disk space + +runs: + using: composite + steps: + - name: free disk space + uses: jlumbroso/free-disk-space@54081f138730dfa15788a46383842cd2f914a1be # 1.3.1 + with: + android: true + dotnet: false + haskell: false + large-packages: false + swap-storage: false diff --git a/.github/workflows/cuda-build.yml b/.github/workflows/cuda-build.yml index 95a723b..a74f9f8 100644 --- a/.github/workflows/cuda-build.yml +++ b/.github/workflows/cuda-build.yml @@ -5,9 +5,21 @@ on: push: branches: - cuda + paths-ignore: + - ".github/workflows/**" + - ".github/actions/**" + - "docs/**" + - "*.md" + - "LICENSE" pull_request: branches: - cuda + paths-ignore: + - ".github/workflows/**" + - ".github/actions/**" + - "docs/**" + - "*.md" + - "LICENSE" permissions: contents: read @@ -23,6 +35,8 @@ jobs: sm: ["86", "89", "120"] steps: + - uses: ./.github/actions/disk + - name: Checkout repository uses: actions/checkout@v4