This repository has been archived by the owner on May 9, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 14
170 lines (147 loc) · 3.96 KB
/
main.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
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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
name: CI
on:
workflow_dispatch:
inputs:
reset-cache:
type: boolean
default: true
push:
branches: main
pull_request:
branches: main
schedule:
- cron: '51 2 * * *'
jobs:
build:
name: Build
uses: ./.github/workflows/build.yml
build-cuda:
name: Build
uses: ./.github/workflows/build.yml
with:
name: cuda
cuda_compiler_version: 12-0
options: -DENABLE_CUDA=on
build-clang:
name: Build Clang
uses: ./.github/workflows/build.yml
with:
name: clang
options: -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++
build-l0:
name: Build
uses: ./.github/workflows/build.yml
with:
name: l0
options: -DENABLE_L0=on
build-both-l0-cuda:
name: Build
uses: ./.github/workflows/build.yml
with:
name: 'all-gpus'
cuda_compiler_version: 12-0
options: -DENABLE_L0=on -DENABLE_CUDA=on
style:
name: Style-check
needs: build
uses: ./.github/workflows/test.yml
with:
cache-suffix: ${{ needs.build.outputs.cache-suffix }}
test: style
sanity:
name: Sanity test (Gtests)
needs: build
uses: ./.github/workflows/test.yml
with:
cache-suffix: ${{ needs.build.outputs.cache-suffix }}
test: sanity
sanity-cpu:
name: CPU-only Sanity tests (Gtests)
needs: build-l0
uses: ./.github/workflows/test.yml
with:
name: l0
cache-suffix: ${{ needs.build.outputs.cache-suffix }}
test: sanity_cpu
sanity-clang:
name: Sanity test (Gtests, Clang)
needs: build-clang
uses: ./.github/workflows/test.yml
with:
name: clang
cache-suffix: ${{ needs.build.outputs.cache-suffix }}
test: sanity
asan:
name: Asan test (Gtests)
needs: build
uses: ./.github/workflows/test.yml
with:
cache-suffix: ${{ needs.build.outputs.cache-suffix }}
test: asan
# test-asan-docker:
# needs: [build-asan, asan]
# uses: ./.github/workflows/test-docker.yml
# with:
# build-name: asan
# reset-cache: ${{ !!inputs.reset-cache }}
build-cuda-docker:
name: Build
uses: ./.github/workflows/build-docker.yml
with:
name: cuda
options: -DENABLE_PYTHON=off -DENABLE_CUDA=on
build-clang-docker:
name: Build Clang
uses: ./.github/workflows/build-docker.yml
with:
name: clang
options: -DENABLE_PYTHON=off -DENABLE_CUDA=on -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++
test-cuda-docker:
name: Sanity test (Gtests)
needs: build-cuda-docker
uses: ./.github/workflows/test-docker.yml
with:
name: cuda
# input for a push event is an empty string, convert it to boolean
reset-cache: ${{ !!inputs.reset-cache }}
test-clang-docker:
name: Sanity test (Gtests)
needs: build-cuda-docker
uses: ./.github/workflows/test-docker.yml
with:
name: clang
# input for a push event is an empty string, convert it to boolean
reset-cache: ${{ !!inputs.reset-cache }}
build-l0-docker:
name: Build
uses: ./.github/workflows/build-docker.yml
with:
name: l0
options: -DENABLE_L0=on -DENABLE_CUDA=off -DENABLE_PYTHON=off
test-l0-docker:
name: Sanity test (Gtests)
needs: build-l0-docker
uses: ./.github/workflows/test-docker.yml
with:
name: l0
reset-cache: ${{ !!inputs.reset-cache }}
runner: intel-ai.hdk.l0
windows-build:
name: Build
uses: ./.github/workflows/build-windows.yml
with:
name: cpu
options: -DCMAKE_BUILD_TYPE=Release -DENABLE_FOLLY=off -G "Visual Studio 17 2022"
windows-sanity:
name: Sanity test (Gtests)
needs: windows-build
uses: ./.github/workflows/test-windows.yml
with:
cache-suffix: ${{ needs.windows-build.outputs.cache-suffix }}
test: sanity
modin:
name: Integration HDK with Modin (Pytest)
uses: ./.github/workflows/modin.yml
pytest:
name: PyHDK (Pytest)
uses: ./.github/workflows/pytest.yml