Skip to content

Commit 6e87dd5

Browse files
authored
Update GitHub Action versions (#4674)
* Bump actions/upload-artifact from 3 to 4 * Bump github/codeql-action from 2 to 3 * Bump actions/checkout from 3 to 4 * Bump actions/setup-python from 4 to 5 * Bump actions/cache from 3 to 4
1 parent 83e16ee commit 6e87dd5

13 files changed

+57
-57
lines changed

.github/workflows/clang_tidy.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ jobs:
1212
runs-on: ubuntu-22.04
1313
if: github.event.pull_request.draft == false
1414
steps:
15-
- uses: actions/checkout@v3
15+
- uses: actions/checkout@v4
1616
- name: install dependencies
1717
run: |
1818
.github/workflows/dependencies/clang14.sh
1919
- name: set up cache
20-
uses: actions/cache@v3
20+
uses: actions/cache@v4
2121
with:
2222
path: ~/.cache/ccache
2323
key: ccache-${{ github.workflow }}-${{ github.job }}-git-${{ github.sha }}
@@ -66,7 +66,7 @@ jobs:
6666
PR_NUMBER: ${{ github.event.number }}
6767
run: |
6868
echo $PR_NUMBER > pr_number.txt
69-
- uses: actions/upload-artifact@v3
69+
- uses: actions/upload-artifact@v4
7070
with:
7171
name: pr_number
7272
path: pr_number.txt

.github/workflows/cleanup-cache-postpr.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
env:
1717
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1818
steps:
19-
- uses: actions/checkout@v3
19+
- uses: actions/checkout@v4
2020
- name: Clean up ccache
2121
run: |
2222
gh extension install actions/gh-actions-cache

.github/workflows/cleanup-cache.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
env:
1717
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1818
steps:
19-
- uses: actions/checkout@v3
19+
- uses: actions/checkout@v4
2020
- name: Clean up ccache
2121
run: |
2222
gh extension install actions/gh-actions-cache

.github/workflows/codeql.yml

+7-7
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929

3030
steps:
3131
- name: Checkout
32-
uses: actions/checkout@v3
32+
uses: actions/checkout@v4
3333

3434
- name: Install Packages (C++)
3535
if: ${{ matrix.language == 'cpp' }}
@@ -44,7 +44,7 @@ jobs:
4444
4545
- name: Set Up Cache
4646
if: ${{ matrix.language == 'cpp' }}
47-
uses: actions/cache@v3
47+
uses: actions/cache@v4
4848
with:
4949
path: ~/.cache/ccache
5050
key: ccache-${{ github.workflow }}-${{ github.job }}-git-${{ github.sha }}
@@ -57,14 +57,14 @@ jobs:
5757
$CMAKE -S . -B build -DWarpX_OPENPMD=ON
5858
5959
- name: Initialize CodeQL
60-
uses: github/codeql-action/init@v2
60+
uses: github/codeql-action/init@v3
6161
with:
6262
config-file: ./.github/codeql/warpx-codeql.yml
6363
languages: ${{ matrix.language }}
6464
queries: +security-and-quality
6565

6666
- name: Build (py)
67-
uses: github/codeql-action/autobuild@v2
67+
uses: github/codeql-action/autobuild@v3
6868
if: ${{ matrix.language == 'python' }}
6969

7070
- name: Build (C++)
@@ -86,7 +86,7 @@ jobs:
8686
$CMAKE --build build -j 4
8787
8888
- name: Perform CodeQL Analysis
89-
uses: github/codeql-action/analyze@v2
89+
uses: github/codeql-action/analyze@v3
9090
with:
9191
category: "/language:${{ matrix.language }}"
9292
upload: False
@@ -107,7 +107,7 @@ jobs:
107107
output: sarif-results/${{ matrix.language }}.sarif
108108

109109
- name: Upload SARIF
110-
uses: github/codeql-action/upload-sarif@v2
110+
uses: github/codeql-action/upload-sarif@v3
111111
with:
112112
sarif_file: sarif-results/${{ matrix.language }}.sarif
113113

@@ -120,7 +120,7 @@ jobs:
120120
PR_NUMBER: ${{ github.event.number }}
121121
run: |
122122
echo $PR_NUMBER > pr_number.txt
123-
- uses: actions/upload-artifact@v3
123+
- uses: actions/upload-artifact@v4
124124
with:
125125
name: pr_number
126126
path: pr_number.txt

.github/workflows/cuda.yml

+8-8
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,16 @@ jobs:
1919
CXXFLAGS: "-Werror"
2020
CMAKE_GENERATOR: Ninja
2121
steps:
22-
- uses: actions/checkout@v3
23-
- uses: actions/setup-python@v4
22+
- uses: actions/checkout@v4
23+
- uses: actions/setup-python@v5
2424
name: Install Python
2525
with:
2626
python-version: '3.x'
2727
- name: install dependencies
2828
run: |
2929
.github/workflows/dependencies/nvcc11-3.sh
3030
- name: CCache Cache
31-
uses: actions/cache@v3
31+
uses: actions/cache@v4
3232
with:
3333
path: ~/.cache/ccache
3434
key: ccache-${{ github.workflow }}-${{ github.job }}-git-${{ github.sha }}
@@ -92,12 +92,12 @@ jobs:
9292
runs-on: ubuntu-20.04
9393
if: github.event.pull_request.draft == false
9494
steps:
95-
- uses: actions/checkout@v3
95+
- uses: actions/checkout@v4
9696
- name: install dependencies
9797
run: |
9898
.github/workflows/dependencies/nvcc11-8.sh
9999
- name: CCache Cache
100-
uses: actions/cache@v3
100+
uses: actions/cache@v4
101101
with:
102102
path: ~/.cache/ccache
103103
key: ccache-${{ github.workflow }}-${{ github.job }}-git-${{ github.sha }}
@@ -129,11 +129,11 @@ jobs:
129129
# # For NVHPC, Ninja is slower than the default:
130130
# CMAKE_GENERATOR: Ninja
131131
steps:
132-
- uses: actions/checkout@v3
132+
- uses: actions/checkout@v4
133133
- name: Dependencies
134134
run: .github/workflows/dependencies/nvhpc.sh
135135
- name: CCache Cache
136-
uses: actions/cache@v3
136+
uses: actions/cache@v4
137137
with:
138138
path: ~/.cache/ccache
139139
key: ccache-${{ github.workflow }}-${{ github.job }}-git-${{ github.sha }}
@@ -197,7 +197,7 @@ jobs:
197197
PR_NUMBER: ${{ github.event.number }}
198198
run: |
199199
echo $PR_NUMBER > pr_number.txt
200-
- uses: actions/upload-artifact@v3
200+
- uses: actions/upload-artifact@v4
201201
with:
202202
name: pr_number
203203
path: pr_number.txt

.github/workflows/hip.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ jobs:
1515
CMAKE_GENERATOR: Ninja
1616
if: github.event.pull_request.draft == false
1717
steps:
18-
- uses: actions/checkout@v3
18+
- uses: actions/checkout@v4
1919
- name: install dependencies
2020
shell: bash
2121
run: .github/workflows/dependencies/hip.sh
2222
- name: CCache Cache
23-
uses: actions/cache@v3
23+
uses: actions/cache@v4
2424
with:
2525
path: ~/.cache/ccache
2626
key: ccache-${{ github.workflow }}-${{ github.job }}-git-${{ github.sha }}
@@ -74,12 +74,12 @@ jobs:
7474
CMAKE_GENERATOR: Ninja
7575
if: github.event.pull_request.draft == false
7676
steps:
77-
- uses: actions/checkout@v3
77+
- uses: actions/checkout@v4
7878
- name: install dependencies
7979
shell: bash
8080
run: .github/workflows/dependencies/hip.sh
8181
- name: CCache Cache
82-
uses: actions/cache@v3
82+
uses: actions/cache@v4
8383
with:
8484
path: ~/.cache/ccache
8585
key: ccache-${{ github.workflow }}-${{ github.job }}-git-${{ github.sha }}
@@ -135,7 +135,7 @@ jobs:
135135
PR_NUMBER: ${{ github.event.number }}
136136
run: |
137137
echo $PR_NUMBER > pr_number.txt
138-
- uses: actions/upload-artifact@v3
138+
- uses: actions/upload-artifact@v4
139139
with:
140140
name: pr_number
141141
path: pr_number.txt

.github/workflows/insitu.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
container:
2121
image: senseiinsitu/ci:fedora35-amrex-20220613
2222
steps:
23-
- uses: actions/checkout@v3
23+
- uses: actions/checkout@v4
2424
- name: Configure
2525
run: |
2626
cmake -S . -B build \
@@ -41,7 +41,7 @@ jobs:
4141
container:
4242
image: alpinedav/ascent:0.9.2
4343
steps:
44-
- uses: actions/checkout@v3
44+
- uses: actions/checkout@v4
4545
- name: Configure
4646
run: |
4747
. /ascent_docker_setup_env.sh
@@ -61,7 +61,7 @@ jobs:
6161
max_step = 40 \
6262
diag1.intervals = 30:40:10 \
6363
diag1.format = ascent
64-
- uses: actions/upload-artifact@v2
64+
- uses: actions/upload-artifact@v4
6565
with:
6666
name: ascent-test-artifacts
6767
path: |

.github/workflows/intel.yml

+7-7
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ jobs:
1717
#env:
1818
# CMAKE_GENERATOR: Ninja
1919
steps:
20-
- uses: actions/checkout@v3
20+
- uses: actions/checkout@v4
2121
- name: install dependencies
2222
run: |
2323
.github/workflows/dependencies/icc.sh
2424
- name: CCache Cache
25-
uses: actions/cache@v3
25+
uses: actions/cache@v4
2626
with:
2727
path: ~/.cache/ccache
2828
key: ccache-${{ github.workflow }}-${{ github.job }}-git-${{ github.sha }}
@@ -82,13 +82,13 @@ jobs:
8282
# CMAKE_GENERATOR: Ninja
8383
if: github.event.pull_request.draft == false
8484
steps:
85-
- uses: actions/checkout@v3
85+
- uses: actions/checkout@v4
8686
- name: install dependencies
8787
shell: bash
8888
run: |
8989
.github/workflows/dependencies/dpcpp.sh
9090
- name: CCache Cache
91-
uses: actions/cache@v3
91+
uses: actions/cache@v4
9292
with:
9393
path: ~/.cache/ccache
9494
key: ccache-${{ github.workflow }}-${{ github.job }}-git-${{ github.sha }}
@@ -146,13 +146,13 @@ jobs:
146146
# CMAKE_GENERATOR: Ninja
147147
if: github.event.pull_request.draft == false
148148
steps:
149-
- uses: actions/checkout@v3
149+
- uses: actions/checkout@v4
150150
- name: install dependencies
151151
shell: bash
152152
run: |
153153
.github/workflows/dependencies/dpcpp.sh
154154
- name: CCache Cache
155-
uses: actions/cache@v3
155+
uses: actions/cache@v4
156156
with:
157157
path: ~/.cache/ccache
158158
key: ccache-${{ github.workflow }}-${{ github.job }}-git-${{ github.sha }}
@@ -204,7 +204,7 @@ jobs:
204204
PR_NUMBER: ${{ github.event.number }}
205205
run: |
206206
echo $PR_NUMBER > pr_number.txt
207-
- uses: actions/upload-artifact@v3
207+
- uses: actions/upload-artifact@v4
208208
with:
209209
name: pr_number
210210
path: pr_number.txt

.github/workflows/macos.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
# For macOS, Ninja is slower than the default:
1818
#CMAKE_GENERATOR: Ninja
1919
steps:
20-
- uses: actions/checkout@v3
20+
- uses: actions/checkout@v4
2121
- name: install dependencies
2222
run: |
2323
set +e
@@ -45,7 +45,7 @@ jobs:
4545
python3 -m pip install --upgrade build packaging setuptools wheel
4646
python3 -m pip install --upgrade mpi4py
4747
- name: CCache Cache
48-
uses: actions/cache@v3
48+
uses: actions/cache@v4
4949
with:
5050
path: /Users/runner/Library/Caches/ccache
5151
key: ccache-${{ github.workflow }}-${{ github.job }}-git-${{ github.sha }}
@@ -97,7 +97,7 @@ jobs:
9797
PR_NUMBER: ${{ github.event.number }}
9898
run: |
9999
echo $PR_NUMBER > pr_number.txt
100-
- uses: actions/upload-artifact@v3
100+
- uses: actions/upload-artifact@v4
101101
with:
102102
name: pr_number
103103
path: pr_number.txt

.github/workflows/post-pr.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
PR_NUMBER: ${{ github.event.number }}
1414
run: |
1515
echo $PR_NUMBER > pr_number.txt
16-
- uses: actions/upload-artifact@v3
16+
- uses: actions/upload-artifact@v4
1717
with:
1818
name: pr_number
1919
path: pr_number.txt

.github/workflows/source.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
runs-on: ubuntu-22.04
1919

2020
steps:
21-
- uses: actions/checkout@v3
21+
- uses: actions/checkout@v4
2222
- name: Non-ASCII characters
2323
run: .github/workflows/source/hasNonASCII
2424
- name: TABs

0 commit comments

Comments
 (0)