Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 12 additions & 7 deletions .github/workflows/merge_group.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,26 +13,31 @@
secrets:
tflm-bot-token: ${{ secrets.TFLM_BOT_PACKAGE_READ_TOKEN }}

call-hexagon:
uses: ./.github/workflows/suite_hexagon.yml
call-windows:
uses: ./.github/workflows/test_windows.yml
with:
trigger-sha: ${{ github.sha }}

call-cortex-m:
Comment on lines +17 to +21

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {}
uses: ./.github/workflows/suite_cortex_m.yml
with:

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {}
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-cortex-m:
uses: ./.github/workflows/suite_cortex_m.yml
call-hexagon:
uses: ./.github/workflows/suite_hexagon.yml
with:

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {}
trigger-sha: ${{ github.sha }}
scope: 'all'
secrets:
tflm-bot-token: ${{ secrets.TFLM_BOT_PACKAGE_READ_TOKEN }}

Expand All @@ -44,13 +49,13 @@
tflm-bot-token: ${{ secrets.TFLM_BOT_PACKAGE_READ_TOKEN }}

tests-passed:
needs: [call-core, call-hexagon, call-xtensa, call-cortex-m, call-riscv]
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
exit 0

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {}
29 changes: 18 additions & 11 deletions .github/workflows/pr_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,38 +38,36 @@

echo "scope=$SCOPE" >> $GITHUB_OUTPUT

call-core:
call-check-tflite-files:
needs: gatekeeper
if: needs.gatekeeper.outputs.scope != 'none'
uses: ./.github/workflows/suite_core.yml
uses: ./.github/workflows/check_tflite_files.yml
with:
trigger-sha: ${{ github.event.pull_request.head.sha }}
pr-number: ${{ github.event.pull_request.number }}
pr-body: ${{ github.event.pull_request.body }}
secrets:
tflm-bot-token: ${{ secrets.TFLM_BOT_PACKAGE_READ_TOKEN }}

call-check-tflite-files:
call-core:
needs: gatekeeper
if: needs.gatekeeper.outputs.scope != 'none'
uses: ./.github/workflows/check_tflite_files.yml
uses: ./.github/workflows/suite_core.yml
with:
trigger-sha: ${{ github.event.pull_request.head.sha }}
pr-number: ${{ github.event.pull_request.number }}
pr-body: ${{ github.event.pull_request.body }}
secrets:
tflm-bot-token: ${{ secrets.TFLM_BOT_PACKAGE_READ_TOKEN }}

call-hexagon:
call-windows:
needs: gatekeeper
if: needs.gatekeeper.outputs.scope != 'none'
uses: ./.github/workflows/suite_hexagon.yml
uses: ./.github/workflows/test_windows.yml
with:
trigger-sha: ${{ github.event.pull_request.head.sha }}
secrets:
tflm-bot-token: ${{ secrets.TFLM_BOT_PACKAGE_READ_TOKEN }}

call-cortex-m:
needs: gatekeeper
if: needs.gatekeeper.outputs.scope != 'none'

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {}
uses: ./.github/workflows/suite_cortex_m.yml
with:
trigger-sha: ${{ github.event.pull_request.head.sha }}
Expand All @@ -87,6 +85,15 @@
secrets:
tflm-bot-token: ${{ secrets.TFLM_BOT_PACKAGE_READ_TOKEN }}

call-hexagon:
needs: gatekeeper
if: needs.gatekeeper.outputs.scope != 'none'
uses: ./.github/workflows/suite_hexagon.yml
with:
trigger-sha: ${{ github.event.pull_request.head.sha }}
secrets:
tflm-bot-token: ${{ secrets.TFLM_BOT_PACKAGE_READ_TOKEN }}

call-riscv:
needs: gatekeeper
if: needs.gatekeeper.outputs.scope == 'all'
Expand All @@ -97,17 +104,17 @@
tflm-bot-token: ${{ secrets.TFLM_BOT_PACKAGE_READ_TOKEN }}

tests-passed:
needs: [gatekeeper, call-core, call-check-tflite-files, call-hexagon, call-cortex-m, call-xtensa, call-riscv]
needs: [gatekeeper, call-check-tflite-files, call-core, call-windows, call-cortex-m, call-xtensa, call-hexagon, call-riscv]
if: always()
runs-on: ubuntu-latest
steps:
- run: |
# If skipped, result is 'skipped' or 'success' depending on logic?
# needs.*.result contains 'skipped' if job didn't run.
# We fail if any result is 'failure' or 'cancelled'.
if [[ "${{ contains(needs.*.result, 'failure') }}" == "true" || "${{ contains(needs.*.result, 'cancelled') }}" == "true" ]]; then
echo "One or more dependent jobs failed."
exit 1
fi
# If gatekeeper said none, everything skipped. That's success (nothing failed).
exit 0

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {}
4 changes: 4 additions & 0 deletions .github/workflows/run_windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ name: Run-Windows
# Entry point for Windows tests. Triggered by schedule or workflow_dispatch.

on:
schedule:
# 10am UTC is 3am or 4am PT depending on daylight savings.
- cron: '0 10 * * *'

# Allow manually triggering of the workflow.
workflow_dispatch: {}

Expand Down
Loading