Getting number of addressable devices from the mlir module instead of hardcoding #570
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
name: On PR | |
on: | |
workflow_dispatch: | |
inputs: | |
mlir_override: | |
description: 'Git SHA of commit in tenstorrent/tt-mlir' | |
required: false | |
type: string | |
pull_request: | |
branches: [ "main" ] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
pre-commit: | |
uses: ./.github/workflows/pre-commit.yml | |
secrets: inherit | |
spdx: | |
uses: ./.github/workflows/spdx.yml | |
secrets: inherit | |
build-and-test: | |
needs: [pre-commit, spdx] | |
uses: ./.github/workflows/build-and-test.yml | |
secrets: inherit | |
with: | |
mlir_override: ${{ inputs.mlir_override }} | |
test_mark: 'push' | |
check-all-green: | |
if: always() | |
needs: | |
- pre-commit | |
- spdx | |
- build-and-test | |
runs-on: Ubuntu-latest | |
steps: | |
- name: Check if the needed jobs succeeded or failed | |
uses: re-actors/alls-green@release/v1 | |
with: | |
jobs: ${{ toJSON(needs) }} |