Skip to content

Commit b9e8cb4

Browse files
author
Vahid Tavanashad
committed
add python matrix to build with clang
1 parent 7f2a181 commit b9e8cb4

File tree

2 files changed

+18
-6
lines changed

2 files changed

+18
-6
lines changed

.github/workflows/build-with-clang.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ jobs:
1313
name: Build project with IntelLLVM clang compiler
1414
runs-on: ubuntu-latest
1515

16+
strategy:
17+
matrix:
18+
python: ["3.9", "3.10", "3.11", "3.12"]
1619
env:
1720
ONEAPI_ROOT: /opt/intel/oneapi
1821

@@ -39,7 +42,7 @@ jobs:
3942
- name: Setup Python
4043
uses: actions/setup-python@v5
4144
with:
42-
python-version: '3.12'
45+
python-version: ${{ matrix.python }}
4346
architecture: x64
4447

4548
- name: Checkout repo
@@ -50,7 +53,7 @@ jobs:
5053
- name: Install mkl-service dependencies
5154
shell: bash -l {0}
5255
run: |
53-
pip install numpy cython setuptools pytest pytest-cov
56+
pip install cython setuptools pytest
5457
5558
- name: List oneAPI folder content
5659
shell: bash -l {0}
@@ -61,15 +64,14 @@ jobs:
6164
run: |
6265
source /opt/intel/oneapi/setvars.sh
6366
echo $CMPLR_ROOT
64-
export CC=$CMPLR_ROOT/bin/compiler/clang
65-
export CXX=$CMPLR_ROOT/bin/compiler/clang++
67+
export CC=$CMPLR_ROOT/bin/compiler/icx
68+
export CXX=$CMPLR_ROOT/bin/compiler/icpx
6669
export CFLAGS="${CFLAGS} -fno-fast-math"
67-
echo "CC = ${CC} CXX=${CXX}"
68-
ls -l ${CC} ${CXX}
6970
python setup.py develop
7071
7172
- name: Run mkl_random tests
7273
shell: bash -l {0}
7374
run: |
7475
source /opt/intel/oneapi/setvars.sh
76+
pip install pytest
7577
pytest -s -v --pyargs mkl

.github/workflows/conda-package.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@ jobs:
2222
matrix:
2323
python: ["3.9", "3.10", "3.11", "3.12"]
2424
steps:
25+
- name: Cancel Previous Runs
26+
uses: styfle/[email protected]
27+
with:
28+
access_token: ${{ github.token }}
29+
2530
- uses: actions/[email protected]
2631
with:
2732
fetch-depth: 0
@@ -71,6 +76,11 @@ jobs:
7176
env:
7277
conda-bld: C:\Miniconda\conda-bld\win-64\
7378
steps:
79+
- name: Cancel Previous Runs
80+
uses: styfle/[email protected]
81+
with:
82+
access_token: ${{ github.token }}
83+
7484
- uses: actions/[email protected]
7585
with:
7686
fetch-depth: 0

0 commit comments

Comments
 (0)