.github: upgrade deprecated upload-artifact@v3 to v4

Fixes a lot of instances of this warning:

Node.js 16 actions are deprecated. Please update the following actions
to use Node.js 20: actions/upload-artifact@v3. For more information see:
https://github.blog/changelog/
  2023-09-22-github-actions-transitioning-from-node-16-to-node-20/

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
This commit is contained in:
Marc Herbert 2024-03-06 14:34:09 -08:00 committed by Liam Girdwood
parent 22b3518601
commit e29d4bc390
2 changed files with 6 additions and 4 deletions

View File

@ -87,7 +87,7 @@ jobs:
sof/scripts/fuzz.sh -o fuzz-stdout.txt -t "$duration" -j"$(nproc)" -- "$cmake_arg"
- name: Upload stdout
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: failure()
with:
name: ${{ matrix.IPC }} logs

View File

@ -198,10 +198,11 @@ jobs:
${{ matrix.build_opts }} ${{ matrix.IPC_platforms }}
- name: Upload build artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: ${{ matrix.zephyr_revision == 'mnfst' }}
with:
name: linux-build ${{ matrix.build_opts }} ${{ matrix.IPC_platforms }}
if-no-files-found: error
path: |
${{ github.workspace }}/workspace/build-sof-staging
${{ github.workspace }}/workspace/**/compile_commands.json
@ -363,9 +364,10 @@ jobs:
${{ matrix.build_opts }} ${{ matrix.platforms }}
- name: Upload build artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: windows-build ${{ matrix.build_opts }} ${{ matrix.platforms }}
if-no-files-found: error
path: |
${{ github.workspace }}/workspace/build-sof-staging
${{ github.workspace }}/workspace/**/compile_commands.json
@ -391,7 +393,7 @@ jobs:
filter: 'tree:0'
- name: Download Windows and Linux builds
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
- name: apt-get dos2unix
run: sudo apt-get update; sudo apt-get -y install dos2unix