Skip to content

Commit 124f56b

Browse files
committed
Upgrade workflows to actions/checkout@v4, actions/upload-artifact@v4, actions/cache@v4
Node.js 16 actions are deprecated. https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/
1 parent 3055280 commit 124f56b

File tree

10 files changed

+27
-31
lines changed

10 files changed

+27
-31
lines changed

.github/workflows/build-linux.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ jobs:
8080

8181
steps:
8282
- name: checkout code
83-
uses: actions/checkout@v3
83+
uses: actions/checkout@v4
8484

8585
- name: query distribution
8686
run: cat /etc/os-release
@@ -118,7 +118,7 @@ jobs:
118118
119119
- name: upload binary package
120120
if: github.event_name == 'push'
121-
uses: actions/upload-artifact@v3
121+
uses: actions/upload-artifact@v4
122122
with:
123123
name: fpga-runtime-for-opencl-${{ github.sha }}-${{ matrix.image }}-${{ matrix.config }}-${{ github.run_id }}
124124
path: /fpga-runtime-for-opencl
@@ -147,7 +147,7 @@ jobs:
147147
manifests: cmake/manifests/linux
148148

149149
- name: upload manifests if installed components changed
150-
uses: actions/upload-artifact@v3
150+
uses: actions/upload-artifact@v4
151151
if: failure()
152152
with:
153153
name: manifests-${{ matrix.image }}-${{ matrix.config }}-${{ github.run_id }}

.github/workflows/build-windows.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ jobs:
6464

6565
steps:
6666
- name: checkout code
67-
uses: actions/checkout@v3
67+
uses: actions/checkout@v4
6868

6969
- name: query path of compiler setup script
7070
id: msvc
@@ -74,7 +74,7 @@ jobs:
7474
7575
- name: cache libelf
7676
id: cache-libelf
77-
uses: actions/cache@v3
77+
uses: actions/cache@v4
7878
with:
7979
path: c:\libelf
8080
key: libelf-${{ hashFiles('.github/workflows/build-windows.yml', 'scripts/install_libelf.ps1') }}
@@ -91,7 +91,7 @@ jobs:
9191

9292
- name: cache zlib
9393
id: cache-zlib
94-
uses: actions/cache@v3
94+
uses: actions/cache@v4
9595
with:
9696
path: c:\zlib
9797
key: zlib-${{ hashFiles('.github/workflows/build-windows.yml', 'scripts/install_zlib.ps1') }}
@@ -108,7 +108,7 @@ jobs:
108108

109109
- name: cache ninja
110110
id: cache-ninja
111-
uses: actions/cache@v3
111+
uses: actions/cache@v4
112112
with:
113113
path: c:\ninja
114114
key: ninja-${{ hashFiles('.github/workflows/build-windows.yml', 'scripts/install_ninja.ps1') }}
@@ -145,7 +145,7 @@ jobs:
145145
146146
- name: cache aocl
147147
id: cache-aocl
148-
uses: actions/cache@v3
148+
uses: actions/cache@v4
149149
with:
150150
path: c:\aocl
151151
key: aocl-${{ hashFiles('.github/workflows/build-windows.yml', 'scripts/install_aocl.ps1') }}
@@ -172,7 +172,7 @@ jobs:
172172
173173
- name: upload binary package
174174
if: github.event_name == 'push'
175-
uses: actions/upload-artifact@v3
175+
uses: actions/upload-artifact@v4
176176
with:
177177
name: fpga-runtime-for-opencl-${{ github.sha }}-${{ matrix.image }}-${{ matrix.config }}-${{ github.run_id }}
178178
path: c:\fpga-runtime-for-opencl
@@ -200,7 +200,7 @@ jobs:
200200
manifests: cmake\manifests\windows
201201

202202
- name: upload manifests if installed components changed
203-
uses: actions/upload-artifact@v3
203+
uses: actions/upload-artifact@v4
204204
if: failure()
205205
with:
206206
name: manifests-${{ matrix.image }}-${{ matrix.config }}-${{ github.run_id }}

.github/workflows/clang-format.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535

3636
steps:
3737
- name: checkout code
38-
uses: actions/checkout@v3
38+
uses: actions/checkout@v4
3939

4040
- name: run clang-format on source files
4141
run: ./scripts/clang-format.sh --verbose

.github/workflows/container.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ jobs:
8080

8181
steps:
8282
- name: checkout code
83-
uses: actions/checkout@v3
83+
uses: actions/checkout@v4
8484

8585
# https://docs.docker.com/engine/reference/commandline/tag/#extended-description
8686
# > A tag name must be valid ASCII and may contain lowercase and

.github/workflows/coverage.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535

3636
steps:
3737
- name: checkout main branch
38-
uses: actions/checkout@v3
38+
uses: actions/checkout@v4
3939
with:
4040
ref: ${{ github.base_ref }}
4141

@@ -55,7 +55,7 @@ jobs:
5555
run: mv -t "$RUNNER_TEMP" build
5656

5757
- name: checkout current branch
58-
uses: actions/checkout@v3
58+
uses: actions/checkout@v4
5959

6060
- name: create build directory
6161
run: mkdir build

.github/workflows/coverity-pull-request.yml

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848

4949
steps:
5050
- name: Checkout PR
51-
uses: actions/checkout@v3
51+
uses: actions/checkout@v4
5252
- run: echo /opt/coverity/latest/bin >> "$GITHUB_PATH"
5353
- name: Build current
5454
run: |
@@ -77,17 +77,13 @@ jobs:
7777
cov-format-errors --text-output-style multiline --dir results --filesort --file "$(realpath ..)" --strip-path "$(realpath ..)" > ../cov-errors-base.txt
7878
cd ..
7979
readlink -f cov-errors-base.txt
80-
- name: Upload current cov-errors.txt
81-
uses: actions/upload-artifact@v3
80+
- name: Upload current and base cov-errors
81+
uses: actions/upload-artifact@v4
8282
with:
8383
name: fpga-runtime-for-opencl-${{ github.sha }}-coverity-${{ github.run_id }}
84-
path: cov-errors.txt
85-
if-no-files-found: error
86-
- name: Upload base cov-errors.txt
87-
uses: actions/upload-artifact@v3
88-
with:
89-
name: fpga-runtime-for-opencl-${{ github.sha }}-coverity-${{ github.run_id }}
90-
path: cov-errors-base.txt
84+
path: |
85+
cov-errors.txt
86+
cov-errors-base.txt
9187
if-no-files-found: error
9288
- name: Verify no new Coverity Issues
9389
run: |

.github/workflows/coverity.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
- /opt/coverity:/opt/coverity
4040

4141
steps:
42-
- uses: actions/checkout@v3
42+
- uses: actions/checkout@v4
4343
- run: cmake -G Ninja -S . -B build -DCMAKE_BUILD_TYPE=Release
4444
- run: echo /opt/coverity/latest/bin >> "$GITHUB_PATH"
4545
# The --compiler names must match those used by CMake.
@@ -53,7 +53,7 @@ jobs:
5353
- run: cov-format-errors --text-output-style multiline --dir results --filesort --file "$PWD" --strip-path "$PWD" > cov-errors.txt
5454
- run: cat cov-errors.txt
5555
- run: count=$(grep -c '^$' cov-errors.txt) || true && echo "$(( $count / 2 ))"
56-
- uses: actions/upload-artifact@v3
56+
- uses: actions/upload-artifact@v4
5757
with:
5858
name: fpga-runtime-for-opencl-${{ github.sha }}-coverity-${{ github.run_id }}
5959
path: cov-errors.txt

.github/workflows/fuzz-test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
- name: Install PyYAML
3838
run: pip install pyyaml
3939
- name: Checkout runtime
40-
uses: actions/checkout@v3
40+
uses: actions/checkout@v4
4141
- name: Build
4242
run: |
4343
mkdir -p build/fuzz_testing
@@ -60,7 +60,7 @@ jobs:
6060
run: |
6161
cat build/fuzz_testing/fuzz_testing/results/results.yml
6262
- name: Upload results
63-
uses: actions/upload-artifact@v3
63+
uses: actions/upload-artifact@v4
6464
with:
6565
name: fpga-runtime-for-opencl-${{ github.sha }}-fuzz-test-results-${{ github.run_id }}
6666
path: |

.github/workflows/tsan.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ jobs:
5858

5959
steps:
6060
- name: checkout code
61-
uses: actions/checkout@v3
61+
uses: actions/checkout@v4
6262

6363
- name: query distribution
6464
run: cat /etc/os-release
@@ -85,7 +85,7 @@ jobs:
8585
ctest -V
8686
8787
- name: tsan result
88-
uses: actions/upload-artifact@v3
88+
uses: actions/upload-artifact@v4
8989
if: always()
9090
with:
9191
name: tsan-report

.github/workflows/unix.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525

2626
steps:
2727
- name: checkout code
28-
uses: actions/checkout@v3
28+
uses: actions/checkout@v4
2929

3030
# See Git Glossary for pathspec patterns
3131
# https://git-scm.com/docs/gitglossary#Documentation/gitglossary.txt-aiddefpathspecapathspec

0 commit comments

Comments
 (0)