Skip to content
This repository was archived by the owner on Sep 26, 2025. It is now read-only.

Commit 6100c94

Browse files
Add workflow
1 parent d2b33ac commit 6100c94

File tree

2 files changed

+59
-0
lines changed

2 files changed

+59
-0
lines changed

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
@oleksandr-pavlyk @diptorupd

.github/workflows/ci.yaml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
name: Build sample data-parallel extensions
2+
on:
3+
pull_request:
4+
push:
5+
branches: [main]
6+
7+
jobs:
8+
setup_develop:
9+
name: Build packages with DPC++
10+
runs-on: Ubuntu-20.04
11+
12+
steps:
13+
-name: Cancel Previous Runs
14+
uses: styfle/[email protected]
15+
with:
16+
access_token: ${{ github.token }}
17+
18+
- name: Add Intel repository
19+
run: |
20+
wget https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS-2023.PUB
21+
sudo apt-key add GPG-PUB-KEY-INTEL-SW-PRODUCTS-2023.PUB
22+
rm GPG-PUB-KEY-INTEL-SW-PRODUCTS-2023.PUB
23+
sudo add-apt-repository "deb https://apt.repos.intel.com/oneapi all main"
24+
sudo apt-get update
25+
26+
- name: Install Intel OneAPI
27+
run: |
28+
sudo apt-get install intel-oneapi-compiler-dpcpp-cpp
29+
sudo apt-get install intel-oneapi-tbb
30+
31+
- name: Add conda to system path
32+
run: echo $CONDA/bin >> $GITHUB_PATH
33+
34+
- name: Checkout repo
35+
uses: actions/checkout@v2
36+
with:
37+
fetch-depth: 0
38+
39+
- name: Install dependencies
40+
run: |
41+
conda install cmake ninja
42+
pip install --no-cache-dir numpy cython scikit-build pybind11 pytest
43+
conda install dpctl -c dppy/label/dev
44+
45+
- name: Build kde_setuptools
46+
run: |
47+
pushd kde_setuptools
48+
python setup.py develop
49+
python -m pytest tests
50+
popd
51+
52+
- name: Build kde_skbuild
53+
run: |
54+
pushd kde_skbuild
55+
CC=icx CXX=icpx python setup.py develop -G Ninja \
56+
-- -DDPCTL_MODULE_PATH=$(python -m dpctl --cmakedir)
57+
python -m pytest tests
58+
popd

0 commit comments

Comments
 (0)