Add informative error message when IntelSYCL is not found #1089
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: C/C++ CI | |
on: [push] | |
jobs: | |
build-in-linux-container: | |
runs-on: ubuntu-latest | |
container: | |
image: intel/oneapi:2024.1.0-devel-ubuntu22.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Create Build Dir | |
run: mkdir -p ${{github.workspace}}/build | |
- name: Set SYCL environment variable | |
run: echo "SYCL_DIR=/opt/intel/oneapi/compiler/2024.1/lib/cmake/IntelSYCL" >> $GITHUB_ENV | |
- name: Configure | |
working-directory: ${{github.workspace}}/build | |
run: cmake ${{github.workspace}} -DCMAKE_BUILD_TYPE=Release -DOPENMIND_BUILD_SAMPLES=OFF -DOPENMIND_BUILD_TESTS=ON | |
- name: Build | |
working-directory: ${{github.workspace}}/build | |
run: cmake --build . --config Release | |
- name: Test | |
working-directory: ${{github.workspace}}/build | |
run: ctest -C Release |