-
Notifications
You must be signed in to change notification settings - Fork 6
59 lines (55 loc) · 1.35 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
56
57
58
59
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 }}-${{ inputs.mlir_override }}
cancel-in-progress: true
jobs:
spdx:
uses: ./.github/workflows/spdx.yml
secrets: inherit
pre-commit:
uses: ./.github/workflows/pre-commit.yml
secrets: inherit
docker-build:
uses: ./.github/workflows/build-image.yml
secrets: inherit
build:
needs: docker-build
uses: ./.github/workflows/build.yml
secrets: inherit
with:
mlir_override: ${{ inputs.mlir_override }}
docker-image: ${{ needs.docker-build.outputs.docker-image }}
test:
needs:
- docker-build
- build
uses: ./.github/workflows/test.yml
secrets: inherit
with:
test_mark: 'push'
test_group_cnt: 2
test_group_ids: '[1,2]'
docker-image: ${{ needs.docker-build.outputs.docker-image }}
check-all-green:
if: always()
needs:
- pre-commit
- spdx
- docker-build
- 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) }}