SDL: ci: bump actions version tag

From c5794cd9116089eaeb9b41cccc907f1ca7350ed3 Mon Sep 17 00:00:00 2001
From: Anonymous Maarten <[EMAIL REDACTED]>
Date: Fri, 26 Jan 2024 02:33:20 +0100
Subject: [PATCH] ci: bump actions version tag

---
 .github/workflows/android.yml           | 6 +++---
 .github/workflows/cpactions.yml         | 4 ++--
 .github/workflows/emscripten.yml        | 4 ++--
 .github/workflows/haiku.yml             | 4 ++--
 .github/workflows/ios.yml               | 2 +-
 .github/workflows/loongarch64.yml       | 4 ++--
 .github/workflows/main.yml              | 4 ++--
 .github/workflows/msvc.yml              | 4 ++--
 .github/workflows/n3ds.yml              | 4 ++--
 .github/workflows/ppc64le.yml           | 4 ++--
 .github/workflows/ps2.yml               | 4 ++--
 .github/workflows/psp.yml               | 4 ++--
 .github/workflows/riscos.yml            | 4 ++--
 .github/workflows/visionos.yml.disabled | 2 +-
 .github/workflows/vita.yml              | 8 ++++----
 15 files changed, 31 insertions(+), 31 deletions(-)

diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml
index 3ae775afdd72..5c76a07e6803 100644
--- a/.github/workflows/android.yml
+++ b/.github/workflows/android.yml
@@ -19,7 +19,7 @@ jobs:
           - { name: CMake, cmake: 1, android_abi: "arm64-v8a", android_platform: 23, arch: "aarch64", artifact: "SDL-android-arm64", apk-artifact: "SDL-android-apks-arm64" }
 
     steps:
-      - uses: actions/checkout@v3
+      - uses: actions/checkout@v4
       - uses: nttld/setup-ndk@v1
         id: setup_ndk
         with:
@@ -92,13 +92,13 @@ jobs:
           export CC="${{ steps.setup_ndk.outputs.ndk-path }}/toolchains/llvm/prebuilt/linux-x86_64/bin/clang --target=${{ matrix.platform.arch }}-none-linux-androideabi${{ matrix.platform.android_platform }}"
           export PKG_CONFIG_PATH=${{ env.SDL3_DIR }}/lib/pkgconfig
           cmake/test/test_pkgconfig.sh
-      - uses: actions/upload-artifact@v3
+      - uses: actions/upload-artifact@v4
         if: ${{ matrix.platform.name == 'CMake' }}
         with:
           if-no-files-found: error
           name: ${{ matrix.platform.artifact }}
           path: build/dist/SDL3*
-      - uses: actions/upload-artifact@v3
+      - uses: actions/upload-artifact@v4
         if: ${{ matrix.platform.name == 'CMake' }}
         with:
           if-no-files-found: error
diff --git a/.github/workflows/cpactions.yml b/.github/workflows/cpactions.yml
index 7591c0dc2a66..d0324413f7c5 100644
--- a/.github/workflows/cpactions.yml
+++ b/.github/workflows/cpactions.yml
@@ -26,7 +26,7 @@ jobs:
               install-cmd: 'sudo -E pkgin -y install cmake dbus pkgconf ninja-build pulseaudio libxkbcommon wayland wayland-protocols libinotify libusb1',
             }
     steps:
-    - uses: actions/checkout@v3
+    - uses: actions/checkout@v4
     - name: Build
       uses: cross-platform-actions/action@v0.21.1
       with:
@@ -49,7 +49,7 @@ jobs:
           rm -rf build/CMakeFiles
           rm -rf build/docs
 
-    - uses: actions/upload-artifact@v3
+    - uses: actions/upload-artifact@v4
       with:
         if-no-files-found: error
         name: ${{ matrix.platform.artifact }}
diff --git a/.github/workflows/emscripten.yml b/.github/workflows/emscripten.yml
index 116b811a7057..d7ebf6913a6b 100644
--- a/.github/workflows/emscripten.yml
+++ b/.github/workflows/emscripten.yml
@@ -10,7 +10,7 @@ jobs:
   emscripten:
     runs-on: ubuntu-latest
     steps:
-      - uses: actions/checkout@v3
+      - uses: actions/checkout@v4
       - uses: mymindstorm/setup-emsdk@v12
         with:
           version: 3.1.35
@@ -51,7 +51,7 @@ jobs:
             -DTEST_SHARED=FALSE \
             -DCMAKE_PREFIX_PATH=${{ env.SDL3_DIR }}
           cmake --build cmake_config_build --verbose
-      - uses: actions/upload-artifact@v3
+      - uses: actions/upload-artifact@v4
         with:
           if-no-files-found: error
           name: SDL-emscripten
diff --git a/.github/workflows/haiku.yml b/.github/workflows/haiku.yml
index 468d281dd427..b1caee982fb6 100644
--- a/.github/workflows/haiku.yml
+++ b/.github/workflows/haiku.yml
@@ -8,7 +8,7 @@ jobs:
     name: Haiku
     container: haiku/cross-compiler:x86_64-r1beta4
     steps:
-    - uses: actions/checkout@v3
+    - uses: actions/checkout@v4
     - name: Setup dependencies
       run: |
         apt-get install pkg-config -y
@@ -50,7 +50,7 @@ jobs:
       run: |
         export PKG_CONFIG_PATH=${{ env.SDL3_DIR }}/lib/pkgconfig
         cmake/test/test_pkgconfig.sh
-    - uses: actions/upload-artifact@v3
+    - uses: actions/upload-artifact@v4
       with:
         if-no-files-found: error
         name: SDL-haiku
diff --git a/.github/workflows/ios.yml b/.github/workflows/ios.yml
index b36f29db8349..f791e89d5640 100644
--- a/.github/workflows/ios.yml
+++ b/.github/workflows/ios.yml
@@ -19,6 +19,6 @@ jobs:
         - { name: tvOS, target: SDL3, sdk: appletvos }
 
     steps:
-      - uses: actions/checkout@v3
+      - uses: actions/checkout@v4
       - name: Build
         run: xcodebuild -project Xcode/SDL/SDL.xcodeproj -target '${{ matrix.platform.target }}' -configuration Release -sdk ${{ matrix.platform.sdk }} clean build
diff --git a/.github/workflows/loongarch64.yml b/.github/workflows/loongarch64.yml
index f45e1fadc3fc..56d96c6c17f1 100644
--- a/.github/workflows/loongarch64.yml
+++ b/.github/workflows/loongarch64.yml
@@ -15,7 +15,7 @@ jobs:
         platform:
           - { toolchain-version: 2022.09.06 }
     steps:
-      - uses: actions/checkout@v3
+      - uses: actions/checkout@v4
       - name: Install build requirements
         run: |
           sudo apt-get update -y
@@ -85,7 +85,7 @@ jobs:
         run: |
           export PKG_CONFIG_PATH=${{ env.SDL3_DIR }}/lib/pkgconfig
           cmake/test/test_pkgconfig.sh
-      - uses: actions/upload-artifact@v3
+      - uses: actions/upload-artifact@v4
         with:
           if-no-files-found: error
           name: SDL-loongarch64
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index 9cfb6a845b0b..66b68983a965 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -89,7 +89,7 @@ jobs:
         # Install oneAPI
         sudo apt-get install -y intel-oneapi-compiler-dpcpp-cpp-and-cpp-classic
 
-    - uses: actions/checkout@v3
+    - uses: actions/checkout@v4
     - name: Check that versioning is consistent
       # We only need to run this once: arbitrarily use the Linux/CMake build
       if: "runner.os == 'Linux'"
@@ -149,7 +149,7 @@ jobs:
         ${{ matrix.platform.source_cmd }}
         export PKG_CONFIG_PATH=$(echo "${{ github.workspace }}/cmake_prefix/lib/pkgconfig" | sed  -e 's#\\#/#g')
         cmake/test/test_pkgconfig.sh
-    - uses: actions/upload-artifact@v3
+    - uses: actions/upload-artifact@v4
       if: ${{ always() && steps.build.outcome == 'success' }}
       with:
         if-no-files-found: error
diff --git a/.github/workflows/msvc.yml b/.github/workflows/msvc.yml
index f807a1ce8ede..110aafbd22b2 100644
--- a/.github/workflows/msvc.yml
+++ b/.github/workflows/msvc.yml
@@ -25,7 +25,7 @@ jobs:
             project: VisualC-WinRT/SDL-UWP.sln, projectflags: '/p:Platform=x64 /p:WindowsTargetPlatformVersion=10.0.17763.0', artifact: 'SDL-VC-UWP' }
 
     steps:
-    - uses: actions/checkout@v3
+    - uses: actions/checkout@v4
     - name: Create CMake project using SDL as a subproject
       shell: python
       run: |
@@ -92,7 +92,7 @@ jobs:
     - name: Build msbuild
       if: ${{ matrix.platform.project != '' }}
       run: msbuild ${{ matrix.platform.project }} /m /p:BuildInParallel=true /p:Configuration=Release ${{ matrix.platform.projectflags }}
-    - uses: actions/upload-artifact@v3
+    - uses: actions/upload-artifact@v4
       if: ${{ always() && steps.build.outcome == 'success' }}
       with:
         if-no-files-found: error
diff --git a/.github/workflows/n3ds.yml b/.github/workflows/n3ds.yml
index 42d6dd40c53a..dcf99a124342 100644
--- a/.github/workflows/n3ds.yml
+++ b/.github/workflows/n3ds.yml
@@ -12,7 +12,7 @@ jobs:
     container:
       image: devkitpro/devkitarm:latest
     steps:
-      - uses: actions/checkout@v3
+      - uses: actions/checkout@v4
       - name: Install build requirements
         run: |
           apt update
@@ -58,7 +58,7 @@ jobs:
         run: |
           export PKG_CONFIG_PATH=${{ env.SDL3_DIR }}/lib/pkgconfig
           cmake/test/test_pkgconfig.sh
-      - uses: actions/upload-artifact@v3
+      - uses: actions/upload-artifact@v4
         with:
           if-no-files-found: error
           name: SDL-n3ds
diff --git a/.github/workflows/ppc64le.yml b/.github/workflows/ppc64le.yml
index 36be9b2c01fd..4d8190e3e4e2 100644
--- a/.github/workflows/ppc64le.yml
+++ b/.github/workflows/ppc64le.yml
@@ -12,7 +12,7 @@ jobs:
     container:
       image: dockcross/linux-ppc64le:latest
     steps:
-      - uses: actions/checkout@v3
+      - uses: actions/checkout@v4
       - name: Install build requirements
         run: |
           apt-get update -y
@@ -54,7 +54,7 @@ jobs:
         run: |
           export PKG_CONFIG_PATH=${{ env.SDL3_DIR }}/lib/pkgconfig
           cmake/test/test_pkgconfig.sh
-      - uses: actions/upload-artifact@v3
+      - uses: actions/upload-artifact@v4
         with:
           if-no-files-found: error
           name: SDL-ppc64le
diff --git a/.github/workflows/ps2.yml b/.github/workflows/ps2.yml
index 834ab99e0a7f..2b882161702c 100644
--- a/.github/workflows/ps2.yml
+++ b/.github/workflows/ps2.yml
@@ -11,7 +11,7 @@ jobs:
     runs-on: ubuntu-latest
     container: ps2dev/ps2dev:latest
     steps:
-    - uses: actions/checkout@v3
+    - uses: actions/checkout@v4
     - name: Setup dependencies
       run: |
         apk update
@@ -53,7 +53,7 @@ jobs:
         export LDFLAGS="-L$PS2DEV/ps2sdk/ee/lib -L$PS2DEV/gsKit/lib -L$PS2DEV/ps2sdk/ports/lib"
         export PKG_CONFIG_PATH=${{ env.SDL3_DIR }}/lib/pkgconfig
         cmake/test/test_pkgconfig.sh
-    - uses: actions/upload-artifact@v3
+    - uses: actions/upload-artifact@v4
       with:
         if-no-files-found: error
         name: SDL-ps2
diff --git a/.github/workflows/psp.yml b/.github/workflows/psp.yml
index 333bd64dbcc6..62adb8411852 100644
--- a/.github/workflows/psp.yml
+++ b/.github/workflows/psp.yml
@@ -11,7 +11,7 @@ jobs:
     runs-on: ubuntu-latest
     container: pspdev/pspdev:latest
     steps:
-    - uses: actions/checkout@v3
+    - uses: actions/checkout@v4
     - name: Setup dependencies
       run: |
         apk update
@@ -54,7 +54,7 @@ jobs:
         export LDFLAGS="-L$PSPDEV/lib -L$PSPDEV/psp/lib -L$PSPDEV/psp/sdk/lib"
         export PKG_CONFIG_PATH=${{ env.SDL3_DIR }}/lib/pkgconfig
         cmake/test/test_pkgconfig.sh
-    - uses: actions/upload-artifact@v3
+    - uses: actions/upload-artifact@v4
       with:
         if-no-files-found: error
         name: SDL-psp
diff --git a/.github/workflows/riscos.yml b/.github/workflows/riscos.yml
index 2f1869e370b6..1fff80098bb8 100644
--- a/.github/workflows/riscos.yml
+++ b/.github/workflows/riscos.yml
@@ -21,7 +21,7 @@ jobs:
     steps:
     - name: Setup dependencies
       run: apt-get update && apt-get install -y cmake ninja-build
-    - uses: actions/checkout@v3
+    - uses: actions/checkout@v4
     - name: Configure (CMake)
       if: ${{ contains(matrix.platform.name, 'CMake') }}
       run: |
@@ -57,7 +57,7 @@ jobs:
           -DCMAKE_BUILD_TYPE=Release \
           ${{ matrix.platform.test_args }}
         cmake --build cmake_config_build --verbose
-    - uses: actions/upload-artifact@v3
+    - uses: actions/upload-artifact@v4
       with:
         if-no-files-found: error
         name: SDL-riscos
diff --git a/.github/workflows/visionos.yml.disabled b/.github/workflows/visionos.yml.disabled
index f697543b3e0a..d02a74f84a31 100644
--- a/.github/workflows/visionos.yml.disabled
+++ b/.github/workflows/visionos.yml.disabled
@@ -13,7 +13,7 @@ jobs:
     runs-on: macos-latest
 
     steps:
-      - uses: actions/checkout@v3
+      - uses: actions/checkout@v4
       - name: Configure
         run: |
           cmake -B build -GXcode -DCMAKE_SYSTEM_NAME=visionOS
diff --git a/.github/workflows/vita.yml b/.github/workflows/vita.yml
index 6c8f14a5bc83..dddc42519624 100644
--- a/.github/workflows/vita.yml
+++ b/.github/workflows/vita.yml
@@ -24,13 +24,13 @@ jobs:
         - { name: Vita (GLES w/ PVR_PSP2 + gles4vita), pvr: true, version: 3.9,   artifact: SDL-vita-pvr }
 
     steps:
-    - uses: actions/checkout@v3
+    - uses: actions/checkout@v4
     - name: Install build requirements
       run: |
         apk update
         apk add cmake ninja pkgconf bash tar
 
-    - uses: actions/cache/restore@v3
+    - uses: actions/cache/restore@v4
       id: restore-cache
       with:
         path: /vita/dependencies
@@ -77,7 +77,7 @@ jobs:
         wget https://github.com/SonicMastr/gl4es4vita/releases/download/v$gl4es4vita_version-vita/vitasdk_stubs.zip -P/tmp
         unzip /tmp/vitasdk_stubs.zip -d/vita/dependencies/lib
 
-    - uses: actions/cache/save@v3
+    - uses: actions/cache/save@v4
       if: ${{ !steps.restore-cache.outputs.cache-hit }}
       with:
         path: /vita/dependencies
@@ -129,7 +129,7 @@ jobs:
         export CC=arm-vita-eabi-gcc
         export PKG_CONFIG_PATH=${{ env.SDL3_DIR }}/lib/pkgconfig
         cmake/test/test_pkgconfig.sh
-    - uses: actions/upload-artifact@v3
+    - uses: actions/upload-artifact@v4
       with:
         if-no-files-found: error
         name: ${{ matrix.platform.artifact }}