Skip to content

Commit 9ff9452

Browse files
[CI] Fix icx build when 'no-intel-lib' is removed
1 parent 96fa583 commit 9ff9452

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/reusable_basic.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,8 @@ jobs:
179179
- name: Run tests
180180
working-directory: ${{env.BUILD_DIR}}
181181
run: |
182-
LD_LIBRARY_PATH=${{env.BUILD_DIR}}/lib/ ctest --output-on-failure # run all tests for better coverage
182+
${{ matrix.compiler.cxx == 'icpx' && '. /opt/intel/oneapi/setvars.sh' || true }}
183+
LD_LIBRARY_PATH="${{env.BUILD_DIR}}/lib/:${LD_LIBRARY_PATH}" ctest --output-on-failure
183184
184185
- name: Check coverage
185186
if: ${{ matrix.build_type == 'Debug' && matrix.compiler.c == 'gcc' }}

0 commit comments

Comments
 (0)