Skip to content

Commit

Permalink
Test with SYCL in the CI
Browse files Browse the repository at this point in the history
  • Loading branch information
masterleinad committed Jan 30, 2023
1 parent ca4ce77 commit 5c448fb
Showing 1 changed file with 27 additions and 9 deletions.
36 changes: 27 additions & 9 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,27 +43,45 @@ jobs:

- name: Create Build Environment
run: cmake -E make_directory ${{github.workspace}}/mdspan-build

- name: Check Out
uses: actions/checkout@v2
with:
path: ${{github.workspace}}/mdspan-src

- name: Configure CMake
shell: bash
working-directory: ${{github.workspace}}/mdspan-build
run: CXX=${{ matrix.compiler_prefix}}/${{ matrix.compiler_driver }} cmake $GITHUB_WORKSPACE/mdspan-src -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DCMAKE_INSTALL_PREFIX=$GITHUB_WORKSPACE/mdspan-install -DMDSPAN_ENABLE_TESTS=ON -DMDSPAN_ENABLE_EXAMPLES=ON

- name: Build
run: CXX=${{ matrix.compiler_prefix}}/${{ matrix.compiler_driver }} cmake $GITHUB_WORKSPACE/mdspan-src -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DCMAKE_INSTALL_PREFIX=$GITHUB_WORKSPACE/mdspan-install -DMDSPAN_ENABLE_TESTS=ON -DMDSPAN_ENABLE_EXAMPLES=ON ${{ matrix.enable_backend }}

- name: Build (icpx)
if: ${{ matrix.compiler_driver == 'icpx' }}
shell: bash
working-directory: ${{github.workspace}}/mdspan-build
run: |
. /opt/intel/oneapi/setvars.sh
make -j
- name: Build (non-icpx)
if: ${{ matrix.compiler_driver != 'icpx' }}
shell: bash
working-directory: ${{github.workspace}}/mdspan-build
run: make -j

- name: Test

- name: Test (icpx)
if: ${{ matrix.compiler_driver == 'icpx' }}
working-directory: ${{github.workspace}}/mdspan-build
shell: bash
run: ctest

run: |
. /opt/intel/oneapi/setvars.sh
ctest --output-on-failure
- name: Test (non-icpx)
if: ${{ matrix.compiler_driver != 'icpx' }}
working-directory: ${{github.workspace}}/mdspan-build
shell: bash
run: ctest --output-on-failure

- name: Install
shell: bash
working-directory: ${{github.workspace}}/mdspan-build
Expand Down

0 comments on commit 5c448fb

Please sign in to comment.