diff --git a/.github/workflows/basic.yml b/.github/workflows/basic.yml index 168dca7fba..232f968695 100644 --- a/.github/workflows/basic.yml +++ b/.github/workflows/basic.yml @@ -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 diff --git a/.github/workflows/sanitizers.yml b/.github/workflows/sanitizers.yml index 2ca7125436..2a09f60fe0 100644 --- a/.github/workflows/sanitizers.yml +++ b/.github/workflows/sanitizers.yml @@ -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: