-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (43 loc) · 1 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
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:
needs: [pre-commit, spdx]
uses: ./.github/workflows/run-build.yml
secrets: inherit
with:
mlir_override: ${{ github.event.inputs.mlir_override }}
test:
needs: build
uses: ./.github/workflows/run-tests.yml
secrets: inherit
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) }}