Skip to content

Commit 433455a

Browse files
Fix clang workflow, update action versions
1 parent 195801a commit 433455a

File tree

2 files changed

+16
-16
lines changed

2 files changed

+16
-16
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,13 @@ jobs:
3333
sudo apt-get install intel-oneapi-mkl-devel
3434
3535
- name: Setup Python
36-
uses: actions/setup-python@v4
36+
uses: actions/setup-python@v5
3737
with:
3838
python-version: '3.11'
3939
architecture: x64
4040

4141
- name: Checkout repo
42-
uses: actions/checkout@v3
42+
uses: actions/checkout@v4
4343
with:
4444
fetch-depth: 0
4545

@@ -57,8 +57,8 @@ jobs:
5757
run: |
5858
source /opt/intel/oneapi/setvars.sh
5959
echo $CMPLR_ROOT
60-
export CC=$CMPLR_ROOT/../latest/bin-llvm/clang
61-
export CXX=$CMPLR_ROOT/../latest/bin-llvm/clang++
60+
export CC=$CMPLR_ROOT/bin/compiler/clang
61+
export CXX=$CMPLR_ROOT/bin/compiler/clang++
6262
echo "CC = ${CC} CXX=${CXX}"
6363
ls -l ${CC} ${CXX}
6464
python setup.py develop

.github/workflows/conda-package.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@ jobs:
1515
matrix:
1616
python: ["3.9", "3.10", "3.11", "3.12"]
1717
steps:
18-
- uses: actions/checkout@v2
18+
- uses: actions/checkout@v4
1919
with:
2020
fetch-depth: 0
2121

2222
- name: Set pkgs_dirs
2323
run: |
2424
echo "pkgs_dirs: [~/.conda/pkgs]" >> ~/.condarc
2525
- name: Cache conda packages
26-
uses: actions/cache@v2
26+
uses: actions/cache@v4
2727
env:
2828
CACHE_NUMBER: 0 # Increase to reset cache
2929
with:
@@ -50,7 +50,7 @@ jobs:
5050
$CHANNELS \
5151
conda-recipe
5252
- name: Upload artifact
53-
uses: actions/upload-artifact@v2
53+
uses: actions/upload-artifact@v4
5454
with:
5555
name: ${{ env.PACKAGE_NAME }} ${{ runner.os }} Python ${{ matrix.python }}
5656
path: /usr/share/miniconda/conda-bld/linux-64/${{ env.PACKAGE_NAME }}-*.tar.bz2
@@ -64,16 +64,16 @@ jobs:
6464
env:
6565
conda-bld: C:\Miniconda\conda-bld\win-64\
6666
steps:
67-
- uses: actions/checkout@v2
67+
- uses: actions/checkout@v4
6868
with:
6969
fetch-depth: 0
70-
- uses: conda-incubator/setup-miniconda@v2
70+
- uses: conda-incubator/setup-miniconda@v3
7171
with:
7272
auto-activate-base: true
7373
activate-environment: ""
7474

7575
- name: Cache conda packages
76-
uses: actions/cache@v3
76+
uses: actions/cache@v4
7777
env:
7878
CACHE_NUMBER: 3 # Increase to reset cache
7979
with:
@@ -88,7 +88,7 @@ jobs:
8888
- name: Build conda package
8989
run: conda build --no-test --python ${{ matrix.python }} -c intel -c defaults --override-channels conda-recipe
9090
- name: Upload artifact
91-
uses: actions/upload-artifact@v2
91+
uses: actions/upload-artifact@v4
9292
with:
9393
name: ${{ env.PACKAGE_NAME }} ${{ runner.os }} Python ${{ matrix.python }}
9494
path: ${{ env.conda-bld }}${{ env.PACKAGE_NAME }}-*.tar.bz2
@@ -108,7 +108,7 @@ jobs:
108108

109109
steps:
110110
- name: Download artifact
111-
uses: actions/download-artifact@v2
111+
uses: actions/download-artifact@v4
112112
with:
113113
name: ${{ env.PACKAGE_NAME }} ${{ runner.os }} Python ${{ matrix.python }}
114114
- name: Add conda to system path
@@ -135,7 +135,7 @@ jobs:
135135
run: |
136136
echo "pkgs_dirs: [~/.conda/pkgs]" >> ~/.condarc
137137
- name: Cache conda packages
138-
uses: actions/cache@v2
138+
uses: actions/cache@v4
139139
env:
140140
CACHE_NUMBER: 0 # Increase to reset cache
141141
with:
@@ -175,10 +175,10 @@ jobs:
175175

176176
steps:
177177
- name: Download artifact
178-
uses: actions/download-artifact@v2
178+
uses: actions/download-artifact@v4
179179
with:
180180
name: ${{ env.PACKAGE_NAME }} ${{ runner.os }} Python ${{ matrix.python }}
181-
- uses: conda-incubator/setup-miniconda@v2
181+
- uses: conda-incubator/setup-miniconda@v3
182182
with:
183183
auto-activate-base: true
184184
activate-environment: ""
@@ -205,7 +205,7 @@ jobs:
205205
conda create -n test_mkl_random ${{ env.PACKAGE_NAME }}=%PACKAGE_VERSION% python=${{ matrix.python }} -c ${{ env.GITHUB_WORKSPACE }}/channel ${{ env.CHANNELS }} --only-deps --dry-run > lockfile
206206
more lockfile
207207
- name: Cache conda packages
208-
uses: actions/cache@v3
208+
uses: actions/cache@v4
209209
env:
210210
CACHE_NUMBER: 3 # Increase to reset cache
211211
with:

0 commit comments

Comments
 (0)