blob: 736450038c5be334159e95ff91049d65cc694829 [file] [log] [blame]
Pete Warden58f4c2e2021-07-27 17:12:49 -07001name: RISC-V
2
3# https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#onschedule
4on:
5 schedule:
6 # 10am UTC is 3am or 4am PT depending on daylight savings.
7 - cron: '0 10 * * *'
8
9 # Allow manually triggering of the workflow.
10 workflow_dispatch: {}
11
12jobs:
13 riscv_daily:
14 runs-on: ubuntu-latest
15
16 if: |
17 github.event_name == 'workflow_dispatch' ||
18 (github.event_name == 'schedule' && github.repository == 'tensorflow/tflite-micro')
19
20 name: RISC-V Continuous Builds
21 steps:
jwithers63510bb2022-11-04 16:40:31 -070022 - uses: actions/setup-python@v4
Advait Jainded5e522023-06-12 23:35:31 -070023 with:
jwithers63510bb2022-11-04 16:40:31 -070024 python-version: '3.10'
Advait Jainded5e522023-06-12 23:35:31 -070025 - uses: actions/checkout@v3
Pete Warden58f4c2e2021-07-27 17:12:49 -070026 - name: Test
Advait Jainded5e522023-06-12 23:35:31 -070027 uses: docker://ghcr.io/tflm-bot/tflm-ci:latest
28 with:
29 args: /bin/sh -c tensorflow/lite/micro/tools/ci_build/test_riscv.sh
jwitherscb606d52023-01-25 17:43:43 -080030
31 issue-on-error:
32 needs: [riscv_daily]
33 if: ${{ always() && contains(needs.*.result, 'failure') }}
34 uses: ./.github/workflows/issue_on_error.yml
35 with:
36 repo: ${{ github.repository }}
37 workflow: ${{ github.workflow }}
38 run_id: ${{ github.run_id }}
39 run_number: ${{ github.run_number }}
40 flag_label: ci:bot_issue
41 secrets:
42 token: ${{ secrets.GITHUB_TOKEN }}