-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
40c14ad
commit 591c13a
Showing
1 changed file
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,13 +13,21 @@ on: | |
- nightly | ||
- nightly_sweeps | ||
- push or nightly | ||
mlir_override: | ||
description: 'Git SHA of commit in tenstorrent/tt-mlir or branch name' | ||
required: false | ||
type: string | ||
workflow_call: | ||
inputs: | ||
test_mark: | ||
description: 'Test mark to run' | ||
required: false | ||
default: 'push' | ||
type: string | ||
mlir_override: | ||
description: 'Git SHA of commit in tenstorrent/tt-mlir or branch name' | ||
required: false | ||
type: string | ||
|
||
jobs: | ||
|
||
|
@@ -71,6 +79,7 @@ jobs: | |
echo "job-id=$JOB_ID" >> "$GITHUB_OUTPUT" | ||
echo "test_report_path=reports/report_$JOB_ID.xml" >> "$GITHUB_OUTPUT" | ||
- name: Git safe dir | ||
run: git config --global --add safe.directory ${{ steps.strings.outputs.work-dir }} | ||
|
||
|
@@ -86,6 +95,21 @@ jobs: | |
git submodule foreach --recursive git clean -ffdx | ||
git submodule foreach --recursive git reset --hard | ||
- name: Update submodule if mlir_override is set | ||
if: ${{ inputs.mlir_override }} | ||
run: | | ||
cd third_party/tt-mlir | ||
git fetch | ||
git checkout ${{ inputs.mlir_override }} | ||
branch_name=$(git rev-parse --abbrev-ref HEAD) | ||
commit_sha=$(git rev-parse HEAD) | ||
commit_title=$(git log -1 --pretty=%s) | ||
echo "Branch name: $branch_name" | ||
echo "Commit SHA: $commit_sha" | ||
echo "Commit title: $commit_title" | ||
echo "::notice::Using tt-mlir branch: $branch_name, commit: $commit_sha, title: $commit_title" | ||
cd ../.. | ||
- name: ccache | ||
uses: hendrikmuhs/[email protected] | ||
with: | ||
|