-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (51 loc) · 1.31 KB
/
on-pr.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
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
docker-build:
uses: ./.github/workflows/build-image.yml
secrets: inherit
with:
mlir_override: ${{ inputs.mlir_override }}
build:
needs: [pre-commit, spdx, docker-build]
uses: ./.github/workflows/run-build.yml
secrets: inherit
with:
mlir_override: ${{ github.event.inputs.mlir_override }}
docker-image: ${{ needs.docker-build.outputs.docker-image }}
test:
needs: [build, docker-build]
uses: ./.github/workflows/run-tests.yml
secrets: inherit
with:
docker-image: ${{ needs.docker-build.outputs.docker-image }}
check-all-green:
if: always()
needs:
- pre-commit
- spdx
- build
- 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) }}