Skip to content

made apt -q/-y flags consistent #73

made apt -q/-y flags consistent

made apt -q/-y flags consistent #73

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:
CC: icx
CXX: dpcpp
BUILD_DIR: cmake-build-debug
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 /opt/intel/oneapi/setvars.sh
printenv >> $GITHUB_ENV
echo /opt/intel/oneapi/compiler/latest/linux/bin >> $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