-
Notifications
You must be signed in to change notification settings - Fork 1k
61 lines (52 loc) · 1.59 KB
/
merge_group.yml
File metadata and controls
61 lines (52 loc) · 1.59 KB
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
60
61
name: Merge Queue
# Entry point for GitHub Merge Queue. Runs all tests before merging.
on:
merge_group:
jobs:
call-core:
uses: ./.github/workflows/suite_core.yml
with:
trigger-sha: ${{ github.sha }}
secrets:
tflm-bot-token: ${{ secrets.TFLM_BOT_PACKAGE_READ_TOKEN }}
call-windows:
uses: ./.github/workflows/test_windows.yml
with:
trigger-sha: ${{ github.sha }}
call-cortex-m:
uses: ./.github/workflows/suite_cortex_m.yml
with:
trigger-sha: ${{ github.sha }}
scope: 'all'
secrets:
tflm-bot-token: ${{ secrets.TFLM_BOT_PACKAGE_READ_TOKEN }}
call-xtensa:
uses: ./.github/workflows/suite_xtensa.yml
with:
trigger-sha: ${{ github.sha }}
scope: 'all'
secrets:
tflm-bot-token: ${{ secrets.TFLM_BOT_PACKAGE_READ_TOKEN }}
call-hexagon:
uses: ./.github/workflows/suite_hexagon.yml
with:
trigger-sha: ${{ github.sha }}
secrets:
tflm-bot-token: ${{ secrets.TFLM_BOT_PACKAGE_READ_TOKEN }}
call-riscv:
uses: ./.github/workflows/suite_riscv.yml
with:
trigger-sha: ${{ github.sha }}
secrets:
tflm-bot-token: ${{ secrets.TFLM_BOT_PACKAGE_READ_TOKEN }}
tests-passed:
needs: [call-core, call-windows, call-cortex-m, call-xtensa, call-hexagon, call-riscv]
if: always()
runs-on: ubuntu-latest
steps:
- run: |
if [[ "${{ contains(needs.*.result, 'failure') }}" == "true" || "${{ contains(needs.*.result, 'cancelled') }}" == "true" ]]; then
echo "One or more dependent jobs failed."
exit 1
fi
exit 0