Skip to content

Commit 7325246

Browse files
author
Vahid Tavanashad
committed
address comments
1 parent c0ce3b7 commit 7325246

File tree

1 file changed

+15
-12
lines changed

1 file changed

+15
-12
lines changed

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

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,14 @@ jobs:
1515
strategy:
1616
matrix:
1717
python: ["3.10", "3.11", "3.12"] # 3.9 fails - gh-issue#56
18+
1819
env:
1920
ONEAPI_ROOT: /opt/intel/oneapi
2021

22+
defaults:
23+
run:
24+
shell: bash -el {0}
25+
2126
steps:
2227
- name: Cancel Previous Runs
2328
uses: styfle/[email protected]
@@ -50,27 +55,25 @@ jobs:
5055
fetch-depth: 0
5156

5257
- name: Install mkl-service dependencies
53-
shell: bash -l {0}
54-
run: |
55-
pip install cython setuptools pytest
58+
uses: BSFishy/pip-action@v1
59+
with:
60+
packages: |
61+
cython
62+
setuptools
63+
pytest
5664
5765
- name: List oneAPI folder content
58-
shell: bash -l {0}
59-
run: ls /opt/intel/oneapi/compiler
66+
run: ls ${{ env.ONEAPI_ROOT }}/compiler
6067

6168
- name: Build mkl-service
62-
shell: bash -l {0}
6369
run: |
64-
source /opt/intel/oneapi/setvars.sh
70+
source ${{ env.ONEAPI_ROOT }}/setvars.sh
6571
echo $CMPLR_ROOT
6672
export CC=$CMPLR_ROOT/bin/icx
67-
export CXX=$CMPLR_ROOT/bin/icpx
6873
export CFLAGS="${CFLAGS} -fno-fast-math"
6974
python setup.py develop
7075
71-
- name: Run mkl-service tests
72-
shell: bash -l {0}
76+
- name: Run mkl-service tests
7377
run: |
74-
source /opt/intel/oneapi/setvars.sh
75-
pip install pytest
78+
source ${{ env.ONEAPI_ROOT }}/setvars.sh
7679
pytest -s -v --pyargs mkl

0 commit comments

Comments
 (0)