Skip to content

Commit 070751f

Browse files
authored
Added windows (#3348)
1 parent 2aa6e12 commit 070751f

File tree

3 files changed

+34
-18
lines changed

3 files changed

+34
-18
lines changed

.github/workflows/merge_group.yml

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,16 @@ jobs:
1313
secrets:
1414
tflm-bot-token: ${{ secrets.TFLM_BOT_PACKAGE_READ_TOKEN }}
1515

16-
call-hexagon:
17-
uses: ./.github/workflows/suite_hexagon.yml
16+
call-windows:
17+
uses: ./.github/workflows/test_windows.yml
18+
with:
19+
trigger-sha: ${{ github.sha }}
20+
21+
call-cortex-m:
22+
uses: ./.github/workflows/suite_cortex_m.yml
1823
with:
1924
trigger-sha: ${{ github.sha }}
25+
scope: 'all'
2026
secrets:
2127
tflm-bot-token: ${{ secrets.TFLM_BOT_PACKAGE_READ_TOKEN }}
2228

@@ -28,11 +34,10 @@ jobs:
2834
secrets:
2935
tflm-bot-token: ${{ secrets.TFLM_BOT_PACKAGE_READ_TOKEN }}
3036

31-
call-cortex-m:
32-
uses: ./.github/workflows/suite_cortex_m.yml
37+
call-hexagon:
38+
uses: ./.github/workflows/suite_hexagon.yml
3339
with:
3440
trigger-sha: ${{ github.sha }}
35-
scope: 'all'
3641
secrets:
3742
tflm-bot-token: ${{ secrets.TFLM_BOT_PACKAGE_READ_TOKEN }}
3843

@@ -44,7 +49,7 @@ jobs:
4449
tflm-bot-token: ${{ secrets.TFLM_BOT_PACKAGE_READ_TOKEN }}
4550

4651
tests-passed:
47-
needs: [call-core, call-hexagon, call-xtensa, call-cortex-m, call-riscv]
52+
needs: [call-core, call-windows, call-cortex-m, call-xtensa, call-hexagon, call-riscv]
4853
if: always()
4954
runs-on: ubuntu-latest
5055
steps:
@@ -53,4 +58,4 @@ jobs:
5358
echo "One or more dependent jobs failed."
5459
exit 1
5560
fi
56-
exit 0
61+
exit 0

.github/workflows/pr_test.yml

Lines changed: 18 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -38,34 +38,32 @@ jobs:
3838
3939
echo "scope=$SCOPE" >> $GITHUB_OUTPUT
4040
41-
call-core:
41+
call-check-tflite-files:
4242
needs: gatekeeper
4343
if: needs.gatekeeper.outputs.scope != 'none'
44-
uses: ./.github/workflows/suite_core.yml
44+
uses: ./.github/workflows/check_tflite_files.yml
4545
with:
4646
trigger-sha: ${{ github.event.pull_request.head.sha }}
47+
pr-number: ${{ github.event.pull_request.number }}
48+
pr-body: ${{ github.event.pull_request.body }}
4749
secrets:
4850
tflm-bot-token: ${{ secrets.TFLM_BOT_PACKAGE_READ_TOKEN }}
4951

50-
call-check-tflite-files:
52+
call-core:
5153
needs: gatekeeper
5254
if: needs.gatekeeper.outputs.scope != 'none'
53-
uses: ./.github/workflows/check_tflite_files.yml
55+
uses: ./.github/workflows/suite_core.yml
5456
with:
5557
trigger-sha: ${{ github.event.pull_request.head.sha }}
56-
pr-number: ${{ github.event.pull_request.number }}
57-
pr-body: ${{ github.event.pull_request.body }}
5858
secrets:
5959
tflm-bot-token: ${{ secrets.TFLM_BOT_PACKAGE_READ_TOKEN }}
6060

61-
call-hexagon:
61+
call-windows:
6262
needs: gatekeeper
6363
if: needs.gatekeeper.outputs.scope != 'none'
64-
uses: ./.github/workflows/suite_hexagon.yml
64+
uses: ./.github/workflows/test_windows.yml
6565
with:
6666
trigger-sha: ${{ github.event.pull_request.head.sha }}
67-
secrets:
68-
tflm-bot-token: ${{ secrets.TFLM_BOT_PACKAGE_READ_TOKEN }}
6967

7068
call-cortex-m:
7169
needs: gatekeeper
@@ -87,6 +85,15 @@ jobs:
8785
secrets:
8886
tflm-bot-token: ${{ secrets.TFLM_BOT_PACKAGE_READ_TOKEN }}
8987

88+
call-hexagon:
89+
needs: gatekeeper
90+
if: needs.gatekeeper.outputs.scope != 'none'
91+
uses: ./.github/workflows/suite_hexagon.yml
92+
with:
93+
trigger-sha: ${{ github.event.pull_request.head.sha }}
94+
secrets:
95+
tflm-bot-token: ${{ secrets.TFLM_BOT_PACKAGE_READ_TOKEN }}
96+
9097
call-riscv:
9198
needs: gatekeeper
9299
if: needs.gatekeeper.outputs.scope == 'all'
@@ -97,7 +104,7 @@ jobs:
97104
tflm-bot-token: ${{ secrets.TFLM_BOT_PACKAGE_READ_TOKEN }}
98105

99106
tests-passed:
100-
needs: [gatekeeper, call-core, call-check-tflite-files, call-hexagon, call-cortex-m, call-xtensa, call-riscv]
107+
needs: [gatekeeper, call-check-tflite-files, call-core, call-windows, call-cortex-m, call-xtensa, call-hexagon, call-riscv]
101108
if: always()
102109
runs-on: ubuntu-latest
103110
steps:

.github/workflows/run_windows.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ name: Run-Windows
33
# Entry point for Windows tests. Triggered by schedule or workflow_dispatch.
44

55
on:
6+
schedule:
7+
# 10am UTC is 3am or 4am PT depending on daylight savings.
8+
- cron: '0 10 * * *'
9+
610
# Allow manually triggering of the workflow.
711
workflow_dispatch: {}
812

0 commit comments

Comments
 (0)