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

Commit e2f8943

Browse files
Set default permissions
1 parent 538296a commit e2f8943

File tree

1 file changed

+44
-5
lines changed

1 file changed

+44
-5
lines changed

.github/workflows/ci.yaml

Lines changed: 44 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,16 @@ on:
44
push:
55
branches: [main]
66

7+
permissions: read-all
8+
79
jobs:
8-
setup_develop:
10+
build_and_test_kde_setuptools:
911
name: Build packages with DPC++
1012
runs-on: Ubuntu-latest
1113

1214
steps:
1315
- name: Cancel Previous Runs
14-
uses: styfle/cancel-workflow-action@0.11.0
16+
uses: styfle/cancel-workflow-action@0.12.1
1517
with:
1618
access_token: ${{ github.token }}
1719

@@ -32,7 +34,7 @@ jobs:
3234
run: echo $CONDA/bin >> $GITHUB_PATH
3335

3436
- name: Checkout repo
35-
uses: actions/checkout@v2
37+
uses: actions/checkout@v4.1.1
3638
with:
3739
fetch-depth: 0
3840

@@ -51,13 +53,50 @@ jobs:
5153
python -m pytest tests
5254
popd
5355
56+
57+
build_and_test_kde_skbuild:
58+
name: Build packages with DPC++
59+
runs-on: Ubuntu-latest
60+
61+
steps:
62+
- name: Cancel Previous Runs
63+
uses: styfle/[email protected]
64+
with:
65+
access_token: ${{ github.token }}
66+
67+
- name: Add Intel repository
68+
run: |
69+
wget https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS-2023.PUB
70+
sudo apt-key add GPG-PUB-KEY-INTEL-SW-PRODUCTS-2023.PUB
71+
rm GPG-PUB-KEY-INTEL-SW-PRODUCTS-2023.PUB
72+
sudo add-apt-repository "deb https://apt.repos.intel.com/oneapi all main"
73+
sudo apt-get update
74+
75+
- name: Install Intel OneAPI
76+
run: |
77+
sudo apt-get install intel-oneapi-compiler-dpcpp-cpp
78+
sudo apt-get install intel-oneapi-tbb
79+
80+
- name: Add conda to system path
81+
run: echo $CONDA/bin >> $GITHUB_PATH
82+
83+
- name: Checkout repo
84+
uses: actions/[email protected]
85+
with:
86+
fetch-depth: 0
87+
88+
- name: Install dependencies
89+
run: |
90+
conda install python=3.10 dpctl -c dppy/label/dev -c intel -c conda-forge --override-channels
91+
pip install --no-cache-dir cython scikit-build pybind11 pytest cmake ninja
92+
conda list
93+
5494
- name: Build kde_skbuild
5595
run: |
5696
source /opt/intel/oneapi/setvars.sh
5797
export OCL_ICD_FILENAMES=libintelocl.so
5898
pushd kde_skbuild
5999
CC=icx CXX=icpx python setup.py develop -G Ninja \
60-
-- -DCMAKE_VERBOSE_MAKEFILE=ON \
61-
-DDPCTL_MODULE_PATH=$(python -m dpctl --cmakedir)
100+
-- -DCMAKE_VERBOSE_MAKEFILE=ON
62101
python -m pytest tests
63102
popd

0 commit comments

Comments
 (0)