Skip to content

Commit 83d9a61

Browse files
committed
[CI] Use oneAPI for Linux postcommit build
Signed-off-by: Sarnie, Nick <[email protected]>
1 parent d258210 commit 83d9a61

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

.github/workflows/sycl-linux-build.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,11 @@ jobs:
156156
ref: ${{ inputs.build_ref || github.sha }}
157157
merge_ref: ${{ inputs.merge_ref }}
158158
cache_path: "/__w/repo_cache/"
159+
- name: Setup oneAPI env
160+
if: ${{ inputs.cc == 'icx' || inputs.cxx == 'icpx' }}
161+
run: |
162+
source /opt/whatever
163+
159164
- name: Configure
160165
env:
161166
CC: ${{ inputs.cc }}

.github/workflows/sycl-post-commit.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,14 @@ jobs:
3232
if: github.repository == 'intel/llvm'
3333
uses: ./.github/workflows/sycl-linux-build.yml
3434
with:
35+
build_image: "ghcr.io/intel/llvm/sycl_ubuntu2404_build_oneapi:latest"
3536
build_cache_root: "/__w/llvm"
36-
build_cache_suffix: default
37+
build_cache_suffix: icx
3738
build_artifact_suffix: default
3839
build_configure_extra_args: --no-assertions --hip --cuda --native_cpu --cmake-opt="-DSYCL_ENABLE_STACK_PRINTING=ON" --cmake-opt="-DSYCL_LIB_WITH_DEBUG_SYMBOL=ON"
3940
merge_ref: ''
41+
cc: icx
42+
cxx: icpx
4043

4144
e2e-lin:
4245
needs: [build-lin]

0 commit comments

Comments
 (0)