[llvm] [Github] Use sparse checkout in release asset audit (PR #148646)

Aiden Grossman via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 14 08:07:45 PDT 2025


https://github.com/boomanaiden154 created https://github.com/llvm/llvm-project/pull/148646

This patch makes the release asset audit script use a sparse checkout given we only need two files. This should make the action quite a bit more efficient as it is presumably currently bottlenecked by checking out the entire monorepo.

>From 94b27de58ca265277ec81d6ee992b8f7e70e9c2c Mon Sep 17 00:00:00 2001
From: Aiden Grossman <aidengrossman at google.com>
Date: Mon, 14 Jul 2025 15:06:42 +0000
Subject: [PATCH] [Github] Use sparse checkout in release asset audit

This patch makes the release asset audit script use a sparse checkout
given we only need two files. This should make the action quite a bit
more efficient as it is presumably currently bottlenecked by checking
out the entire monorepo.
---
 .github/workflows/release-asset-audit.yml | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/release-asset-audit.yml b/.github/workflows/release-asset-audit.yml
index 8112d8a140810..b6aa222e8b329 100644
--- a/.github/workflows/release-asset-audit.yml
+++ b/.github/workflows/release-asset-audit.yml
@@ -22,7 +22,12 @@ jobs:
     runs-on: ubuntu-24.04
     if: github.repository == 'llvm/llvm-project'
     steps:
-      - uses: actions/checkout at a5ac7e51b41094c92402da3b24376905380afc29 #v4.1.6
+      - name: Checkout LLVM
+        uses: actions/checkout at 11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
+        with:
+          sprase-checkout: |
+            .github/workflows/release-asset-audit.py
+            llvm/utils/git/requirements.txt
       - name: "Run Audit Script"
         env:
           GITHUB_TOKEN: ${{ github.token }}



More information about the llvm-commits mailing list