Repository navigation
99 lines (90 loc) · 3.21 KB
/
Copy pathtest_misc.yml
File metadata and controls
99 lines (90 loc) · 3.21 KB
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
name: Test - Misc (Style, Project Gen)
on:
workflow_call:
inputs:
trigger-sha:
required: true
type: string
jobs:
check_code_style:
runs-on: ubuntu-latest
timeout-minutes: 60
name: Code Style
container:
image: ghcr.io/tflm-bot/tflm-ci:0.7.1
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
ref: ${{ inputs.trigger-sha }}
allow-unsafe-pr-checkout: true
- name: Check
run: tensorflow/lite/micro/tools/ci_build/test_code_style.sh
makefile_checks:
runs-on: ubuntu-latest
timeout-minutes: 60
name: Makefile Checks
container:
image: ghcr.io/tflm-bot/tflm-ci:0.7.1
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
ref: ${{ inputs.trigger-sha }}
allow-unsafe-pr-checkout: true
- name: Check
run: tensorflow/lite/micro/tools/ci_build/test_makefile.sh
cpp_build_warnings:
runs-on: linux-x86-n4-16
timeout-minutes: 60
container:
image: ghcr.io/tflm-bot/tflm-ci:0.7.1
name: C++ Build Warnings
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
ref: ${{ inputs.trigger-sha || github.ref }}
allow-unsafe-pr-checkout: true
- uses: bazel-contrib/setup-bazel@c5acdfb288317d0b5c0bbd7a396a3dc868bb0f86 # 0.19.0
with:
bazelisk-cache: false
disk-cache: true
cache-save: ${{ github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' }}
repository-cache: true
- name: Build with Warnings as Errors
run: bazel build --config=ci --compilation_mode=opt --build_tests_only --copt="-Werror" --copt="-Wall" --copt="-Wextra" --copt="-Wno-unused-parameter" //...
project_generation:
runs-on: ubuntu-latest
timeout-minutes: 60
name: Project Generation
container:
image: ghcr.io/tflm-bot/tflm-ci:0.7.1
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
ref: ${{ inputs.trigger-sha }}
allow-unsafe-pr-checkout: true
- name: Test
run: |
cd ..
tflite-micro/tensorflow/lite/micro/tools/ci_build/test_project_generation.sh tflite-micro/
clang_tidy:
runs-on: linux-x86-n4-16
timeout-minutes: 60
container:
image: ghcr.io/tflm-bot/tflm-ci:0.7.1
name: Clang Tidy
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
ref: ${{ inputs.trigger-sha }}
allow-unsafe-pr-checkout: true
fetch-depth: 0
- uses: bazel-contrib/setup-bazel@c5acdfb288317d0b5c0bbd7a396a3dc868bb0f86 # 0.19.0
with:
bazelisk-cache: false
disk-cache: true
cache-save: ${{ github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' }}
repository-cache: true
- name: Generate Compilation Database
run: python3 tensorflow/lite/micro/tools/ci_build/generate_compile_commands.py
- name: Clang-Tidy Differential Check
run: tensorflow/lite/micro/tools/ci_build/test_clang_tidy.sh