Skip to content

Update CMakeLists.txt #114

Update CMakeLists.txt

Update CMakeLists.txt #114

Workflow file for this run

name: OneAPI CI with CMake
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
linux-intel-oneapi:
runs-on: ubuntu-latest
env:
BUILD_DIR: cmake-build-debug
# UnoAPI:github-workflow-specific:begin
steps:
- name: Checkout project code
uses: actions/checkout@v2
- name: Install Intel oneAPI
timeout-minutes: 5
run: |
./install-dpcpp.sh
- name: Set oneAPI environment
run: |
source ./setvars.sh
printenv >> $GITHUB_ENV
echo /opt/intel/oneapi/compiler/latest/linux/bin-llvm >> $GITHUB_PATH
- name: CMake configure
run: cmake -DCMAKE_BUILD_TYPE=Debug -S . -B $BUILD_DIR
- name: CMake build
run: cmake --build $BUILD_DIR
- name: CMake test
run: |
$BUILD_DIR/bin/integration
$BUILD_DIR/bin/matrix_mul_dpc
$BUILD_DIR/bin/montecarlo
# eventually keep only this loop for discovering all tests
for test_bin in $BUILD_DIR/bin/*tests; do "./$test_bin"; done
# UnoAPI:github-workflow-specific:end