Skip to content

Commit

Permalink
Merge pull request #708 from ldorau/Run_setvars.sh_also_before_buildi…
Browse files Browse the repository at this point in the history
…ng_for_icpx_compiler

Run setvars.sh also before building for icpx compiler
  • Loading branch information
lukaszstolarczuk committed Sep 5, 2024
2 parents 74b6724 + 0b6d1b7 commit ae5ad2e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/basic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -158,12 +158,14 @@ jobs:
-DUMF_LINK_HWLOC_STATICALLY=${{matrix.link_hwloc_statically}}
- name: Build UMF
run: cmake --build ${{env.BUILD_DIR}} -j $(nproc)
run: |
${{ matrix.compiler.cxx == 'icpx' && '. /opt/intel/oneapi/setvars.sh' || true }}
cmake --build ${{env.BUILD_DIR}} -j $(nproc)
- name: Run tests
working-directory: ${{env.BUILD_DIR}}
run: >
${{ matrix.compiler.cxx == 'icpx' && '. /opt/intel/oneapi/setvars.sh &&' || ''}}
run: |
${{ matrix.compiler.cxx == 'icpx' && '. /opt/intel/oneapi/setvars.sh' || true }}
ctest --output-on-failure --test-dir test
- name: Remove the installation directory
Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/sanitizers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,14 @@ jobs:
-DUMF_TESTS_FAIL_ON_SKIP=ON
- name: Build UMF
run: cmake --build ${{env.BUILD_DIR}} -j $(nproc)
run: |
${{ matrix.compiler.cxx == 'icpx' && '. /opt/intel/oneapi/setvars.sh' || true }}
cmake --build ${{env.BUILD_DIR}} -j $(nproc)
- name: Run tests
working-directory: ${{env.BUILD_DIR}}
run: >
${{ matrix.compiler.cxx == 'icpx' && '. /opt/intel/oneapi/setvars.sh &&' || ''}}
run: |
${{ matrix.compiler.cxx == 'icpx' && '. /opt/intel/oneapi/setvars.sh' || true }}
ctest --output-on-failure
windows-build:
Expand Down

0 comments on commit ae5ad2e

Please sign in to comment.