Skip to content

Commit 20c732f

Browse files
committed
Run setvars.sh also before building for icpx compiler
Run setvars.sh also before building for icpx compiler. It fixes the following warnings: /usr/bin/ld: warning: libsvml.so, needed by ../lib/libumf.so.0.9.0, not found (try using -rpath or -rpath-link) /usr/bin/ld: warning: libirng.so, needed by ../lib/libumf.so.0.9.0, not found (try using -rpath or -rpath-link) /usr/bin/ld: warning: libimf.so, needed by ../lib/libumf.so.0.9.0, not found (try using -rpath or -rpath-link) /usr/bin/ld: warning: libintlc.so.5, needed by ../lib/libumf.so.0.9.0, not found (try using -rpath or -rpath-link) Also unify the next command in the same way. Signed-off-by: Lukasz Dorau <[email protected]>
1 parent 74b6724 commit 20c732f

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

.github/workflows/basic.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -158,12 +158,14 @@ jobs:
158158
-DUMF_LINK_HWLOC_STATICALLY=${{matrix.link_hwloc_statically}}
159159
160160
- name: Build UMF
161-
run: cmake --build ${{env.BUILD_DIR}} -j $(nproc)
161+
run: |
162+
${{ matrix.compiler.cxx == 'icpx' && '. /opt/intel/oneapi/setvars.sh' }}
163+
cmake --build ${{env.BUILD_DIR}} -j $(nproc)
162164
163165
- name: Run tests
164166
working-directory: ${{env.BUILD_DIR}}
165-
run: >
166-
${{ matrix.compiler.cxx == 'icpx' && '. /opt/intel/oneapi/setvars.sh &&' || ''}}
167+
run: |
168+
${{ matrix.compiler.cxx == 'icpx' && '. /opt/intel/oneapi/setvars.sh' }}
167169
ctest --output-on-failure --test-dir test
168170
169171
- name: Remove the installation directory

.github/workflows/sanitizers.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,12 +66,14 @@ jobs:
6666
-DUMF_TESTS_FAIL_ON_SKIP=ON
6767
6868
- name: Build UMF
69-
run: cmake --build ${{env.BUILD_DIR}} -j $(nproc)
69+
run: |
70+
${{ matrix.compiler.cxx == 'icpx' && '. /opt/intel/oneapi/setvars.sh' }}
71+
cmake --build ${{env.BUILD_DIR}} -j $(nproc)
7072
7173
- name: Run tests
7274
working-directory: ${{env.BUILD_DIR}}
73-
run: >
74-
${{ matrix.compiler.cxx == 'icpx' && '. /opt/intel/oneapi/setvars.sh &&' || ''}}
75+
run: |
76+
${{ matrix.compiler.cxx == 'icpx' && '. /opt/intel/oneapi/setvars.sh' }}
7577
ctest --output-on-failure
7678
7779
windows-build:

0 commit comments

Comments
 (0)