Skip to content

Commit

Permalink
Trigger tt-torch nd tt-forge-fe pipelines with mlir override
Browse files Browse the repository at this point in the history
  • Loading branch information
vmilosevic committed Jan 3, 2025
1 parent dd64e2a commit bba9239
Showing 1 changed file with 18 additions and 10 deletions.
28 changes: 18 additions & 10 deletions .github/workflows/on-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
workflow_dispatch:
pull_request:
branches: [ "main" ]
push: #debug

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand All @@ -16,26 +17,33 @@ jobs:
spdx:
uses: ./.github/workflows/spdx.yml
secrets: inherit
build-and-test:
uses: ./.github/workflows/build-and-test.yml
secrets: inherit
# build-and-test:
# uses: ./.github/workflows/build-and-test.yml
# secrets: inherit

# When a PR runs on the uplift branch trigger the downstream checks
downstream-checks:
runs-on: ubuntu-latest
needs: build-and-test
if: github.event.pull_request.head.ref == 'uplift'
# needs: build-and-test
needs: pre-commit # debug
# if: github.event.pull_request.head.ref == 'uplift'
strategy:
matrix:
include:
- target-repo: 'tenstorrent/tt-forge-fe'
workflow-name: 'build-and-test.yml'
- target-repo: 'tenstorrent/tt-torch'
workflow-name: 'on-pr.yml'
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
TARGET_REPO: tenstorrent/tt-forge-fe
WORKFLOW_NAME: build-and-test.yml
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
TARGET_REPO: ${{ matrix.target-repo }}
WORKFLOW_NAME: ${{ matrix.workflow-name }}
steps:
- name: Trigger ${{ env.TARGET_REPO }}
- name: Trigger ${{ env.TARGET_REPO }} tests
shell: bash
run: |
gh workflow run ${{ env.WORKFLOW_NAME }} \
--repo ${{ env.TARGET_REPO }} --ref main \
--field test_mark=push \
--field mlir_override=${{ github.event.pull_request.head.sha }}
gh run list --workflow=${{ env.WORKFLOW_NAME }} --repo ${{ env.TARGET_REPO }} --limit 1
echo "Triggered ${{ env.TARGET_REPO }}"
Expand Down

0 comments on commit bba9239

Please sign in to comment.