| name: RISC-V | |
| # https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#onschedule | |
| on: | |
| schedule: | |
| # 10am UTC is 3am or 4am PT depending on daylight savings. | |
| - cron: '0 10 * * *' | |
| # Allow manually triggering of the workflow. | |
| workflow_dispatch: {} | |
| jobs: | |
| riscv_daily: | |
| runs-on: ubuntu-latest | |
| if: | | |
| github.event_name == 'workflow_dispatch' || | |
| (github.event_name == 'schedule' && github.repository == 'tensorflow/tflite-micro') | |
| name: RISC-V Continuous Builds | |
| steps: | |
| - uses: actions/setup-python@v4 | |
| with: | |
| python-version: '3.10' | |
| - uses: actions/checkout@v3 | |
| - name: Test | |
| uses: docker://ghcr.io/tflm-bot/tflm-ci:latest | |
| with: | |
| args: /bin/sh -c tensorflow/lite/micro/tools/ci_build/test_riscv.sh | |
| issue-on-error: | |
| needs: [riscv_daily] | |
| if: ${{ always() && contains(needs.*.result, 'failure') }} | |
| uses: ./.github/workflows/issue_on_error.yml | |
| with: | |
| repo: ${{ github.repository }} | |
| workflow: ${{ github.workflow }} | |
| run_id: ${{ github.run_id }} | |
| run_number: ${{ github.run_number }} | |
| flag_label: ci:bot_issue | |
| secrets: | |
| token: ${{ secrets.GITHUB_TOKEN }} |