Skip to content

Commit

Permalink
Add tt mlir override
Browse files Browse the repository at this point in the history
  • Loading branch information
vmilosevic committed Dec 10, 2024
1 parent 40c14ad commit 591c13a
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down Expand Up @@ -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 }}

Expand All @@ -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:
Expand Down

0 comments on commit 591c13a

Please sign in to comment.