From 503629fc04d2da1341ad79685224265e39c74308 Mon Sep 17 00:00:00 2001 From: Andrew Fuller Date: Tue, 26 Nov 2024 17:49:26 +0000 Subject: [PATCH] Try out new cleaning --- .../actions/checkout-with-submodule-lfs/action.yml | 11 ++++++++--- .github/workflows/build.yaml | 2 +- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/actions/checkout-with-submodule-lfs/action.yml b/.github/actions/checkout-with-submodule-lfs/action.yml index 498bfccac0d8..bda1986295a1 100644 --- a/.github/actions/checkout-with-submodule-lfs/action.yml +++ b/.github/actions/checkout-with-submodule-lfs/action.yml @@ -14,6 +14,14 @@ inputs: runs: using: "composite" steps: + - name: Clean repo (if it exists) + shell: bash + run: | + if [ -d ".git" ]; then + git clean -xffd + find .git -type f -iname '*.lock' -delete + git submodule deinit -f --all + fi - name: Checkout repo uses: actions/checkout@v4 with: @@ -22,9 +30,6 @@ runs: lfs: true submodules: recursive clean: true - - name: Clean repo - shell: bash - run: git clean -xffd - name: Clean each submodule shell: bash run: git submodule foreach 'git clean -xffd' diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index ea4099d13c9e..c30eda831137 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -38,7 +38,7 @@ jobs: echo "::error title=ccache-not-provisioned::Ccache is not properly provisioned." exit 1 fi - - uses: tenstorrent/tt-metal/.github/actions/checkout-with-submodule-lfs@main + - uses: tenstorrent/tt-metal/.github/actions/checkout-with-submodule-lfs@afuller/debug - name: Set up dynamic env vars for build run: | echo "TT_METAL_HOME=$(pwd)" >> $GITHUB_ENV