mirror of
https://github.com/fumiama/base16384-sycl.git
synced 2026-06-21 12:13:02 +08:00
fix(ci): oneAPI enabling
This commit is contained in:
10
.github/workflows/test.yml
vendored
10
.github/workflows/test.yml
vendored
@@ -3,7 +3,7 @@ on: [push, pull_request]
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test_ubuntu:
|
test_ubuntu:
|
||||||
name: Run CMake Test on Ubuntu (oneAPI) 🧪
|
name: Run CMake Test on Ubuntu 🧪
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Code
|
- name: Checkout Code
|
||||||
@@ -23,13 +23,14 @@ jobs:
|
|||||||
|
|
||||||
- name: Build and Run Tests
|
- name: Build and Run Tests
|
||||||
run: |
|
run: |
|
||||||
|
source /opt/intel/oneapi/setvars.sh
|
||||||
mkdir build
|
mkdir build
|
||||||
cd build
|
cd build
|
||||||
cmake -DCMAKE_BUILD_TYPE=Release -DBUILD=test ..
|
cmake -DCMAKE_BUILD_TYPE=Release -DBUILD=test ..
|
||||||
cmake --build . || ctest --output-on-failure
|
cmake --build . || ctest --output-on-failure
|
||||||
|
|
||||||
test_windows:
|
test_windows:
|
||||||
name: Run CMake Test on Windows (MSVC) 🧪
|
name: Run CMake Test on Windows 🧪
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Code
|
- name: Checkout Code
|
||||||
@@ -41,7 +42,10 @@ jobs:
|
|||||||
./install.exe -s -a --silent --eula accept
|
./install.exe -s -a --silent --eula accept
|
||||||
|
|
||||||
- name: Build and Run Tests
|
- name: Build and Run Tests
|
||||||
|
shell: cmd
|
||||||
run: |
|
run: |
|
||||||
|
"C:\Program Files (x86)\Intel\oneAPI\setvars.bat"
|
||||||
mkdir build
|
mkdir build
|
||||||
|
cd build
|
||||||
cmake -G "NMake Makefiles" -DCMAKE_BUILD_TYPE=Release ..
|
cmake -G "NMake Makefiles" -DCMAKE_BUILD_TYPE=Release ..
|
||||||
cmake --build .; if ($?) { ctest --output-on-failure }
|
cmake --build . && ctest --output-on-failure
|
||||||
|
|||||||
Reference in New Issue
Block a user