forked from tensorflow/tflite-micro
-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (32 loc) · 1.1 KB
/
hexagon.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# YAML schema for GitHub Actions:
# https://help.github.com/en/actions/automating-your-workflow-with-github-actions/workflow-syntax-for-github-actions
#
# Helpful YAML parser to clarify YAML syntax:
# https://yaml-online-parser.appspot.com/
#
# This file can not be run stand-alone. It is called from tests_entry.yml as part of
# the ci automation or from run_hexagon.yml for scheduled or dispatch triggering.
name: Hexagon
on:
workflow_call:
inputs:
trigger-sha:
required: true
type: string
secrets:
tflm-bot-token:
required: true
jobs:
hexagon_build:
runs-on: ubuntu-latest
name: Hexagon Build Test (presubmit)
steps:
- uses: actions/checkout@v2
with:
ref: ${{ inputs.trigger-sha }}
- run: |
rm -rf .git
echo ${{ secrets.tflm-bot-token }} | docker login ghcr.io -u tflm-bot --password-stdin
docker run --rm -v `pwd`:/opt/tflite-micro ghcr.io/tflm-bot/hexagon:0.4 \
/bin/bash -c \
"cd /opt && tflite-micro/tensorflow/lite/micro/tools/ci_build/test_hexagon.sh tflite-micro/"