38
38
changes :
39
39
type : string
40
40
description : ' Filter matches for the changed files in the PR'
41
- default : ' [llvm, clang, sycl, llvm_spirv, xptifw, libclc, libdevice ]'
41
+ default : ' [mlir_sycl, polygeist, cgeist, clang ]'
42
42
required : false
43
43
merge_ref :
44
44
description : |
@@ -150,6 +150,7 @@ jobs:
150
150
ref : ${{ inputs.build_ref || github.sha }}
151
151
merge_ref : ${{ inputs.merge_ref }}
152
152
cache_path : " /__w/repo_cache/"
153
+ default_branch : sycl-mlir
153
154
- name : Configure
154
155
env :
155
156
CC : ${{ inputs.cc }}
@@ -170,38 +171,43 @@ jobs:
170
171
- name : Compile
171
172
id : build
172
173
run : cmake --build $GITHUB_WORKSPACE/build
173
- - name : check-llvm
174
- if : always() && !cancelled() && contains(inputs.changes, 'llvm ')
174
+ - name : mlir-sycl-doc
175
+ if : always() && !cancelled() && contains(inputs.changes, 'mlir_sycl ')
175
176
run : |
176
- cmake --build $GITHUB_WORKSPACE/build --target check-llvm
177
- - name : check-clang
178
- if : always() && !cancelled() && contains(inputs.changes, 'clang ')
177
+ cmake --build $GITHUB_WORKSPACE/build --target mlir-sycl-doc
178
+ - name : polygeist-doc
179
+ if : always() && !cancelled() && contains(inputs.changes, 'polygeist ')
179
180
run : |
180
- # Can we move this to Dockerfile? Hopefully, noop on Windows.
181
- export XDG_CACHE_HOME=$GITHUB_WORKSPACE/os_cache
182
- cmake --build $GITHUB_WORKSPACE/build --target check-clang
183
- - name : check-sycl
184
- if : always() && !cancelled() && contains(inputs.changes, 'sycl ')
181
+ cmake --build $GITHUB_WORKSPACE/build --target polygeist-doc
182
+ # TODO allow to optionally disable in-tree checks
183
+ - name : check-mlir-sycl
184
+ shell : bash
185
+ if : always() && !cancelled() && contains(inputs.changes, 'mlir_sycl ')
185
186
run : |
186
- # TODO consider moving this to Dockerfile.
187
- export LD_LIBRARY_PATH=/usr/local/cuda/compat/:/usr/local/cuda/lib64:$LD_LIBRARY_PATH
188
- cmake --build $GITHUB_WORKSPACE/build --target check-sycl
189
- - name : check-llvm-spirv
190
- if : always() && !cancelled() && contains(inputs.changes, 'llvm_spirv')
187
+ cmake --build $GITHUB_WORKSPACE/build --target check-mlir-sycl
188
+ - name : check-polygeist
189
+ shell : bash
190
+ if : always() && !cancelled() && contains(inputs.changes, 'polygeist')
191
191
run : |
192
- cmake --build $GITHUB_WORKSPACE/build --target check-llvm-spirv
193
- - name : check-xptifw
194
- if : always() && !cancelled() && contains(inputs.changes, 'xptifw')
192
+ cmake --build $GITHUB_WORKSPACE/build --target check-polygeist
193
+ - name : check-polygeist-unit
194
+ shell : bash
195
+ if : always() && !cancelled() && contains(inputs.changes, 'polygeist')
195
196
run : |
196
- cmake --build $GITHUB_WORKSPACE/build --target check-xptifw
197
- - name : check-libclc
198
- if : always() && !cancelled() && contains(inputs.changes, 'libclc')
197
+ cmake --build $GITHUB_WORKSPACE/build --target check-polygeist-unit
198
+ - name : check-cgeist
199
+ shell : bash
200
+ if : always() && !cancelled() && contains(inputs.changes, 'cgeist')
199
201
run : |
200
- cmake --build $GITHUB_WORKSPACE/build --target check-libclc
201
- - name : check-libdevice
202
- if : always() && !cancelled() && contains(inputs.changes, 'libdevice')
202
+ if [ -e /runtimes/oneapi-tbb/env/vars.sh ]; then
203
+ source /runtimes/oneapi-tbb/env/vars.sh;
204
+ fi
205
+ cmake --build $GITHUB_WORKSPACE/build --target check-cgeist
206
+ - name : check-clang-driver
207
+ shell : bash
208
+ if : always() && !cancelled() && contains(inputs.changes, 'clang')
203
209
run : |
204
- cmake --build $GITHUB_WORKSPACE/build --target check-libdevice
210
+ cmake --build $GITHUB_WORKSPACE/build --target check-clang-driver
205
211
- name : Install
206
212
if : ${{ always() && !cancelled() && steps.build.conclusion == 'success' }}
207
213
# TODO replace utility installation with a single CMake target
0 commit comments