Skip to content

Commit

Permalink
Try out new cleaning
Browse files Browse the repository at this point in the history
  • Loading branch information
afuller-TT committed Nov 26, 2024
1 parent 8d15cae commit 73456e2
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
11 changes: 8 additions & 3 deletions .github/actions/checkout-with-submodule-lfs/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-docker-artifact.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
- build-docker
- in-service
steps:
- uses: tenstorrent/tt-metal/.github/actions/checkout-with-submodule-lfs@main
- uses: tenstorrent/tt-metal/.github/actions/checkout-with-submodule-lfs@afuller/debug
with:
fetch-depth: 0
- name: Login to GitHub Container Registry
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 73456e2

Please sign in to comment.