Pete Warden | 58f4c2e | 2021-07-27 17:12:49 -0700 | [diff] [blame] | 1 | name: RISC-V |
| 2 | |
| 3 | # https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#onschedule |
| 4 | on: |
| 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 | |
| 12 | jobs: |
| 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: |
jwithers | 63510bb | 2022-11-04 16:40:31 -0700 | [diff] [blame] | 22 | - uses: actions/setup-python@v4 |
Advait Jain | ded5e52 | 2023-06-12 23:35:31 -0700 | [diff] [blame] | 23 | with: |
jwithers | 63510bb | 2022-11-04 16:40:31 -0700 | [diff] [blame] | 24 | python-version: '3.10' |
Advait Jain | ded5e52 | 2023-06-12 23:35:31 -0700 | [diff] [blame] | 25 | - uses: actions/checkout@v3 |
Pete Warden | 58f4c2e | 2021-07-27 17:12:49 -0700 | [diff] [blame] | 26 | - name: Test |
Advait Jain | ded5e52 | 2023-06-12 23:35:31 -0700 | [diff] [blame] | 27 | 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 |
jwithers | cb606d5 | 2023-01-25 17:43:43 -0800 | [diff] [blame] | 30 | |
| 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 }} |