Skip to content

Commit b3acc6c

Browse files
Merge pull request #1509 from IntelPython/actions-update
Update versions of Github actions scripts prompted by transition from Node 16 to Node 20
2 parents 6ad006e + 04bcd31 commit b3acc6c

File tree

7 files changed

+59
-59
lines changed

7 files changed

+59
-59
lines changed

.github/workflows/conda-package.yml

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,15 @@ jobs:
2222
matrix:
2323
python: ['3.9', '3.10', '3.11']
2424
steps:
25-
- uses: actions/checkout@v3
25+
- uses: actions/checkout@v4
2626
with:
2727
fetch-depth: 0
2828

2929
- name: Set pkgs_dirs
3030
run: |
3131
echo "pkgs_dirs: [~/.conda/pkgs]" >> ~/.condarc
3232
- name: Cache conda packages
33-
uses: actions/cache@v3
33+
uses: actions/cache@v4
3434
env:
3535
CACHE_NUMBER: 3 # Increase to reset cache
3636
with:
@@ -60,12 +60,12 @@ jobs:
6060
$CHANNELS \
6161
conda-recipe
6262
- name: Upload artifact
63-
uses: actions/upload-artifact@v3
63+
uses: actions/upload-artifact@v4
6464
with:
6565
name: ${{ env.PACKAGE_NAME }} ${{ runner.os }} Python ${{ matrix.python }}
6666
path: /usr/share/miniconda/conda-bld/linux-64/${{ env.PACKAGE_NAME }}-*.tar.bz2
6767
- name: Upload wheels artifact
68-
uses: actions/upload-artifact@v3
68+
uses: actions/upload-artifact@v4
6969
with:
7070
name: ${{ env.PACKAGE_NAME }} ${{ runner.os }} Wheels Python ${{ matrix.python }}
7171
path: ${{ env.WHEELS_OUTPUT_FOLDER }}${{ env.PACKAGE_NAME }}-*.whl
@@ -79,18 +79,18 @@ jobs:
7979
env:
8080
conda-bld: C:\Miniconda\conda-bld\win-64\
8181
steps:
82-
- uses: actions/checkout@v3
82+
- uses: actions/checkout@v4
8383
with:
8484
fetch-depth: 0
85-
- uses: conda-incubator/setup-miniconda@v2
85+
- uses: conda-incubator/setup-miniconda@v3
8686
with:
8787
auto-activate-base: true
8888
conda-build-version: "*"
8989
activate-environment: true
9090
python-version: ${{ matrix.python }}
9191

9292
- name: Cache conda packages
93-
uses: actions/cache@v3
93+
uses: actions/cache@v4
9494
env:
9595
CACHE_NUMBER: 3 # Increase to reset cache
9696
with:
@@ -109,12 +109,12 @@ jobs:
109109
OVERRIDE_INTEL_IPO: 1 # IPO requires more resources that GH actions VM provides
110110
run: conda build --no-test --python ${{ matrix.python }} -c intel -c conda-forge --override-channels conda-recipe
111111
- name: Upload artifact
112-
uses: actions/upload-artifact@v3
112+
uses: actions/upload-artifact@v4
113113
with:
114114
name: ${{ env.PACKAGE_NAME }} ${{ runner.os }} Python ${{ matrix.python }}
115115
path: ${{ env.conda-bld }}${{ env.PACKAGE_NAME }}-*.tar.bz2
116116
- name: Upload wheels artifact
117-
uses: actions/upload-artifact@v3
117+
uses: actions/upload-artifact@v4
118118
with:
119119
name: ${{ env.PACKAGE_NAME }} ${{ runner.os }} Wheels Python ${{ matrix.python }}
120120
path: ${{ env.WHEELS_OUTPUT_FOLDER }}${{ env.PACKAGE_NAME }}-*.whl
@@ -134,7 +134,7 @@ jobs:
134134

135135
steps:
136136
- name: Download artifact
137-
uses: actions/download-artifact@v3
137+
uses: actions/download-artifact@v4
138138
with:
139139
name: ${{ env.PACKAGE_NAME }} ${{ runner.os }} Python ${{ matrix.python }}
140140
- name: Add conda to system path
@@ -161,7 +161,7 @@ jobs:
161161
run: |
162162
echo "pkgs_dirs: [~/.conda/pkgs]" >> ~/.condarc
163163
- name: Cache conda packages
164-
uses: actions/cache@v3
164+
uses: actions/cache@v4
165165
env:
166166
CACHE_NUMBER: 3 # Increase to reset cache
167167
with:
@@ -219,10 +219,10 @@ jobs:
219219

220220
steps:
221221
- name: Download artifact
222-
uses: actions/download-artifact@v3
222+
uses: actions/download-artifact@v4
223223
with:
224224
name: ${{ env.PACKAGE_NAME }} ${{ runner.os }} Python ${{ matrix.python }}
225-
- uses: conda-incubator/setup-miniconda@v2
225+
- uses: conda-incubator/setup-miniconda@v3
226226
with:
227227
auto-update-conda: true
228228
conda-build-version: '*'
@@ -262,7 +262,7 @@ jobs:
262262
shell: pwsh
263263
run: Get-Content -Path .\lockfile
264264
- name: Cache conda packages
265-
uses: actions/cache@v3
265+
uses: actions/cache@v4
266266
env:
267267
CACHE_NUMBER: 3 # Increase to reset cache
268268
with:
@@ -326,12 +326,12 @@ jobs:
326326
python: ['3.9', '3.10', '3.11']
327327
steps:
328328
- name: Download conda artifact
329-
uses: actions/download-artifact@v3
329+
uses: actions/download-artifact@v4
330330
with:
331331
name: ${{ env.PACKAGE_NAME }} ${{ runner.os }} Python ${{ matrix.python }}
332332

333333
- name: Download wheel artifact
334-
uses: actions/download-artifact@v3
334+
uses: actions/download-artifact@v4
335335
with:
336336
name: ${{ env.PACKAGE_NAME }} ${{ runner.os }} Wheels Python ${{ matrix.python }}
337337

@@ -362,16 +362,16 @@ jobs:
362362
python: ['3.9', '3.10', '3.11']
363363
steps:
364364
- name: Download artifact
365-
uses: actions/download-artifact@v3
365+
uses: actions/download-artifact@v4
366366
with:
367367
name: ${{ env.PACKAGE_NAME }} ${{ runner.os }} Python ${{ matrix.python }}
368368

369369
- name: Download wheel artifact
370-
uses: actions/download-artifact@v3
370+
uses: actions/download-artifact@v4
371371
with:
372372
name: ${{ env.PACKAGE_NAME }} ${{ runner.os }} Wheels Python ${{ matrix.python }}
373373

374-
- uses: conda-incubator/setup-miniconda@v2
374+
- uses: conda-incubator/setup-miniconda@v3
375375
with:
376376
auto-activate-base: true
377377
activate-environment: ""
@@ -411,11 +411,11 @@ jobs:
411411
# Needed to be able to run conda index
412412
run: conda install conda-build python=${{ matrix.python }}
413413
- name: Checkout dpctl repo
414-
uses: actions/checkout@v3
414+
uses: actions/checkout@v4
415415
with:
416416
fetch-depth: 0
417417
- name: Download artifact
418-
uses: actions/download-artifact@v3
418+
uses: actions/download-artifact@v4
419419
with:
420420
name: ${{ env.PACKAGE_NAME }} ${{ runner.os }} Python ${{ matrix.python }}
421421
- name: Add conda to system path
@@ -437,7 +437,7 @@ jobs:
437437
run: |
438438
echo "pkgs_dirs: [~/.conda/pkgs]" >> ~/.condarc
439439
- name: Cache conda packages
440-
uses: actions/cache@v3
440+
uses: actions/cache@v4
441441
env:
442442
CACHE_NUMBER: 3 # Increase to reset cache
443443
with:
@@ -554,12 +554,12 @@ jobs:
554554
CHANNELS: -c intel -c conda-forge --override-channels
555555
steps:
556556
- name: Checkout dpctl repo
557-
uses: actions/checkout@v3
557+
uses: actions/checkout@v4
558558
with:
559559
fetch-depth: 0
560560
- name: Cache array API tests
561561
id: cache-array-api-tests
562-
uses: actions/cache@v3
562+
uses: actions/cache@v4
563563
env:
564564
ARRAY_CACHE: 3
565565
with:
@@ -578,7 +578,7 @@ jobs:
578578
git clone --recurse-submodules https://github.com/data-apis/array-api-tests array-api-tests
579579
cd array-api-tests
580580
- name: Download artifact
581-
uses: actions/download-artifact@v3
581+
uses: actions/download-artifact@v4
582582
with:
583583
name: ${{ env.PACKAGE_NAME }} ${{ runner.os }} Python ${{ matrix.python }}
584584
- name: Add conda to system path
@@ -605,7 +605,7 @@ jobs:
605605
run: |
606606
echo "pkgs_dirs: [~/.conda/pkgs]" >> ~/.condarc
607607
- name: Cache conda packages
608-
uses: actions/cache@v3
608+
uses: actions/cache@v4
609609
env:
610610
CACHE_NUMBER: 3 # Increase to reset cache
611611
with:
@@ -672,7 +672,7 @@ jobs:
672672
run: echo "::notice ${{ env.MESSAGE }}"
673673
- name: Post result to PR
674674
if: ${{ github.event.pull_request && !github.event.pull_request.head.repo.fork }}
675-
uses: mshick/add-pr-comment@v1
675+
uses: mshick/add-pr-comment@v2
676676
with:
677677
message: |
678678
${{ env.MESSAGE }}
@@ -688,7 +688,7 @@ jobs:
688688
run:
689689
shell: bash -el {0}
690690
steps:
691-
- uses: conda-incubator/setup-miniconda@v2
691+
- uses: conda-incubator/setup-miniconda@v3
692692
with:
693693
run-post: false
694694
channel-priority: "disabled"
@@ -699,7 +699,7 @@ jobs:
699699
run: conda install anaconda-client
700700

701701
- name: Checkout repo
702-
uses: actions/checkout@v3
702+
uses: actions/checkout@v4
703703
with:
704704
repository: IntelPython/devops-tools
705705
fetch-depth: 0

.github/workflows/cpp_style_checks.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@ jobs:
1616
name: clang-format
1717
runs-on: ubuntu-latest
1818
steps:
19-
- uses: actions/checkout@v3
19+
- uses: actions/checkout@v4
2020
- name: Run clang-format style check for C/C++ programs.
21-
uses: jidicula/clang-format-action@v3.5.1
21+
uses: jidicula/clang-format-action@v4.11.0
2222
with:
2323
clang-format-version: '11'
2424
check-path: 'libsyclinterface'
2525
- name: Run clang-format style check for api headers.
26-
uses: jidicula/clang-format-action@v3.5.1
26+
uses: jidicula/clang-format-action@v4.11.0
2727
with:
2828
clang-format-version: '11'
2929
check-path: 'dpctl/apis'

.github/workflows/generate-coverage.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ permissions: read-all
99
jobs:
1010
generate-coverage:
1111
name: Generate coverage and push to Coveralls.io
12-
runs-on: ubuntu-20.04
12+
runs-on: ubuntu-latest
1313
permissions:
1414
pull-requests: write
1515

@@ -21,7 +21,7 @@ jobs:
2121

2222
steps:
2323
- name: Cancel Previous Runs
24-
uses: styfle/cancel-workflow-action@0.11.0
24+
uses: styfle/cancel-workflow-action@0.12.1
2525
with:
2626
access_token: ${{ github.token }}
2727

@@ -50,14 +50,14 @@ jobs:
5050
sudo apt-get install ninja-build
5151
5252
- name: Setup Python
53-
uses: actions/setup-python@v4
53+
uses: actions/setup-python@v5
5454
with:
5555
python-version: '3.11'
5656
architecture: x64
5757

5858
- name: Cache Gtest
5959
id: cache-gtest
60-
uses: actions/cache@v3
60+
uses: actions/cache@v4
6161
with:
6262
path: |
6363
/home/runner/work/googletest-1.13.0/install
@@ -81,7 +81,7 @@ jobs:
8181
make && make install
8282
8383
- name: Checkout repo
84-
uses: actions/checkout@v3
84+
uses: actions/checkout@v4
8585
with:
8686
fetch-depth: 0
8787

.github/workflows/generate-docs.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ permissions: read-all
1111
jobs:
1212
build-and-deploy:
1313
name: Build and Deploy Documentation
14-
runs-on: ubuntu-20.04
14+
runs-on: ubuntu-latest
1515
permissions:
1616
contents: write
1717
pull-requests: write
1818
steps:
1919
- name: Cancel Previous Runs
20-
uses: styfle/cancel-workflow-action@0.11.0
20+
uses: styfle/cancel-workflow-action@0.12.1
2121
with:
2222
access_token: ${{ github.token }}
2323
- name: Add Intel repository
@@ -46,7 +46,7 @@ jobs:
4646
sudo apt-get install ninja-build
4747
- name: Setup Python
4848
if: ${{ !github.event.pull_request || github.event.action != 'closed' }}
49-
uses: actions/setup-python@v4
49+
uses: actions/setup-python@v5
5050
with:
5151
python-version: '3.10'
5252
architecture: x64
@@ -56,7 +56,7 @@ jobs:
5656
run: |
5757
pip install numpy cython setuptools scikit-build cmake sphinx"<7.2" sphinx_rtd_theme pydot graphviz sphinxcontrib-programoutput sphinxcontrib-googleanalytics
5858
- name: Checkout repo
59-
uses: actions/checkout@v3
59+
uses: actions/checkout@v4
6060
with:
6161
fetch-depth: 0
6262
persist-credentials: false
@@ -98,7 +98,7 @@ jobs:
9898
git push tokened_docs gh-pages
9999
- name: Save built docs as an artifact
100100
if: ${{ github.event.pull_request && github.event.pull_request.head.repo.fork && github.event.action != 'closed'}}
101-
uses: actions/upload-artifact@v3
101+
uses: actions/upload-artifact@v4
102102
with:
103103
name: ${{ env.PACKAGE_NAME }} rendered documentation
104104
path: ~/docs
@@ -143,7 +143,7 @@ jobs:
143143
if: ${{ github.event.pull_request && !github.event.pull_request.head.repo.fork && github.event.action != 'closed' }}
144144
env:
145145
PR_NUM: ${{ github.event.number }}
146-
uses: mshick/add-pr-comment@v1
146+
uses: mshick/add-pr-comment@v2
147147
with:
148148
message: |
149149
View rendered docs @ https://intelpython.github.io/dpctl/pulls/${{ env.PR_NUM }}/index.html
@@ -153,7 +153,7 @@ jobs:
153153
if: ${{ github.event.pull_request && !github.event.pull_request.head.repo.fork && github.event.action == 'closed' }}
154154
env:
155155
PR_NUM: ${{ github.event.number }}
156-
uses: mshick/add-pr-comment@v1
156+
uses: mshick/add-pr-comment@v2
157157
with:
158158
message: |
159159
Deleted rendered PR docs from intelpython.github.com/dpctl, latest should be updated shortly. :crossed_fingers:

.github/workflows/os-llvm-sycl-build.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@ jobs:
2222

2323
steps:
2424
- name: Cancel Previous Runs
25-
uses: styfle/cancel-workflow-action@0.11.0
25+
uses: styfle/cancel-workflow-action@0.12.1
2626
with:
2727
access_token: ${{ github.token }}
2828

2929
- name: Cache sycl bundle
3030
id: cache-sycl-bundle
31-
uses: actions/cache@v3
31+
uses: actions/cache@v4
3232
with:
3333
path: |
3434
/home/runner/work/sycl_bundle
@@ -102,7 +102,7 @@ jobs:
102102
sudo apt-get install libtinfo5
103103
104104
- name: Setup Python
105-
uses: actions/setup-python@v4
105+
uses: actions/setup-python@v5
106106
with:
107107
python-version: '3.11'
108108
architecture: x64
@@ -113,7 +113,7 @@ jobs:
113113
pip install numpy"<1.26.0" cython setuptools pytest scikit-build cmake ninja
114114
115115
- name: Checkout repo
116-
uses: actions/checkout@v3
116+
uses: actions/checkout@v4
117117
with:
118118
fetch-depth: 0
119119

.github/workflows/pre-commit.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ jobs:
1111
pre-commit:
1212
runs-on: ubuntu-20.04
1313
steps:
14-
- uses: actions/checkout@v3
15-
- uses: actions/setup-python@v4
14+
- uses: actions/checkout@v4
15+
- uses: actions/setup-python@v5
1616
with:
1717
python-version: '3.10'
1818
- name: Version of clang-format

0 commit comments

Comments
 (0)