From ff1703ceed287ec9bf1e485751f30552f152a27a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Tue, 5 Nov 2024 22:40:36 +0100 Subject: [PATCH] CI: Update all GitHub actions to their latest version (cherry picked from commit 6b202812ffe3a790357a643868afb6c058fdbaca) --- .github/workflows/android_builds.yml | 11 ++++++----- .github/workflows/ios_builds.yml | 8 ++++---- .github/workflows/javascript_builds.yml | 12 ++++++------ .github/workflows/linux_builds.yml | 22 +++++++++++----------- .github/workflows/macos_builds.yml | 16 ++++++++-------- .github/workflows/server_builds.yml | 12 ++++++------ .github/workflows/static_checks.yml | 2 +- .github/workflows/windows_builds.yml | 20 ++++++++++++-------- 8 files changed, 54 insertions(+), 49 deletions(-) diff --git a/.github/workflows/android_builds.yml b/.github/workflows/android_builds.yml index c05b19eb86f..4233a436107 100644 --- a/.github/workflows/android_builds.yml +++ b/.github/workflows/android_builds.yml @@ -14,7 +14,7 @@ jobs: name: Template (target=release, tools=no) steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 # Azure repositories are not reliable, we need to prevent azure giving us packages. - name: Make apt sources.list use the default Ubuntu repositories @@ -24,14 +24,15 @@ jobs: sudo apt-get update - name: Set up Java 11 - uses: actions/setup-java@v1 + uses: actions/setup-java@v4 with: + distribution: temurin java-version: 11 # Upload cache on completion and check it out now - name: Load .scons_cache directory id: android-template-cache - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: ${{github.workspace}}/.scons_cache/ key: ${{github.job}}-${{env.GODOT_BASE_BRANCH}}-${{github.ref}}-${{github.sha}} @@ -43,7 +44,7 @@ jobs: # Use python 3.x release (works cross platform) - name: Set up Python 3.x - uses: actions/setup-python@v2 + uses: actions/setup-python@v5 with: # Semantic version range syntax or exact version of a Python version python-version: '3.x' @@ -68,7 +69,7 @@ jobs: cd ../../.. ls -l bin/ - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v4 with: name: ${{ github.job }} path: bin/* diff --git a/.github/workflows/ios_builds.yml b/.github/workflows/ios_builds.yml index cd0db41a79a..a069d9454f7 100644 --- a/.github/workflows/ios_builds.yml +++ b/.github/workflows/ios_builds.yml @@ -13,12 +13,12 @@ jobs: name: Template (target=release, tools=no) steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 # Upload cache on completion and check it out now - name: Load .scons_cache directory id: ios-template-cache - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: ${{github.workspace}}/.scons_cache/ key: ${{github.job}}-${{env.GODOT_BASE_BRANCH}}-${{github.ref}}-${{github.sha}} @@ -30,7 +30,7 @@ jobs: # Use python 3.x release (works cross platform) - name: Set up Python 3.x - uses: actions/setup-python@v2 + uses: actions/setup-python@v5 with: # Semantic version range syntax or exact version of a Python version python-version: '3.x' @@ -52,7 +52,7 @@ jobs: scons target=release tools=no ls -l bin/ - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v4 with: name: ${{ github.job }} path: bin/* diff --git a/.github/workflows/javascript_builds.yml b/.github/workflows/javascript_builds.yml index 9c2f1360dc4..bf48ab707da 100644 --- a/.github/workflows/javascript_builds.yml +++ b/.github/workflows/javascript_builds.yml @@ -15,7 +15,7 @@ jobs: name: Template (target=release, tools=no) steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 # Azure repositories are not reliable, we need to prevent azure giving us packages. - name: Make apt sources.list use the default Ubuntu repositories @@ -27,7 +27,7 @@ jobs: # Upload cache on completion and check it out now - name: Load .scons_cache directory id: javascript-template-cache - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: ${{github.workspace}}/.scons_cache/ key: ${{github.job}}-${{env.GODOT_BASE_BRANCH}}-${{github.ref}}-${{github.sha}} @@ -40,14 +40,14 @@ jobs: # Additional cache for Emscripten generated system libraries - name: Load Emscripten cache id: javascript-template-emscripten-cache - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: ${{env.EM_CACHE_FOLDER}} key: ${{env.EM_VERSION}}-${{github.job}} # Use python 3.x release (works cross platform) - name: Set up Python 3.x - uses: actions/setup-python@v2 + uses: actions/setup-python@v5 with: # Semantic version range syntax or exact version of a Python version python-version: '3.x' @@ -63,7 +63,7 @@ jobs: scons --version - name: Set up Emscripten latest - uses: mymindstorm/setup-emsdk@v10 + uses: mymindstorm/setup-emsdk@v14 with: version: ${{env.EM_VERSION}} actions-cache-folder: ${{env.EM_CACHE_FOLDER}} @@ -79,7 +79,7 @@ jobs: scons target=release tools=no use_closure_compiler=yes ls -l bin/ - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v4 with: name: ${{ github.job }} path: bin/* diff --git a/.github/workflows/linux_builds.yml b/.github/workflows/linux_builds.yml index 0aa85ada3fc..9665794f35d 100644 --- a/.github/workflows/linux_builds.yml +++ b/.github/workflows/linux_builds.yml @@ -13,7 +13,7 @@ jobs: name: Editor w/ Mono (target=release_debug, tools=yes) steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 # Azure repositories are not reliable, we need to prevent azure giving us packages. - name: Make apt sources.list use the default Ubuntu repositories @@ -31,7 +31,7 @@ jobs: # Upload cache on completion and check it out now - name: Load .scons_cache directory id: linux-editor-cache - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: ${{github.workspace}}/.scons_cache/ key: ${{github.job}}-${{env.GODOT_BASE_BRANCH}}-${{github.ref}}-${{github.sha}} @@ -43,7 +43,7 @@ jobs: # Use python 3.x release (works cross platform; best to keep self contained in it's own step) - name: Set up Python 3.x - uses: actions/setup-python@v2 + uses: actions/setup-python@v5 with: # Semantic version range syntax or exact version of a Python version python-version: '3.x' @@ -68,7 +68,7 @@ jobs: scons tools=yes target=release_debug module_mono_enabled=yes mono_glue=yes ls -l bin/ - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v4 with: name: ${{ github.job }} path: bin/* @@ -79,7 +79,7 @@ jobs: name: Template w/ Mono (target=release, tools=no) steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 # Azure repositories are not reliable, we need to prevent azure giving us packages. - name: Make apt sources.list use the default Ubuntu repositories @@ -97,7 +97,7 @@ jobs: # Upload cache on completion and check it out now - name: Load .scons_cache directory id: linux-template-cache - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: ${{github.workspace}}/.scons_cache/ key: ${{github.job}}-${{env.GODOT_BASE_BRANCH}}-${{github.ref}}-${{github.sha}} @@ -109,7 +109,7 @@ jobs: # Use python 3.x release (works cross platform) - name: Set up Python 3.x - uses: actions/setup-python@v2 + uses: actions/setup-python@v5 with: # Semantic version range syntax or exact version of a Python version python-version: '3.x' @@ -131,7 +131,7 @@ jobs: scons target=release tools=no module_mono_enabled=yes mono_glue=no ls -l bin/ - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v4 with: name: ${{ github.job }} path: bin/* @@ -142,7 +142,7 @@ jobs: name: Editor and exported project with sanitizers (target=debug/release, tools=yes/no, use_ubsan=yes, use_asan=yes) steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 # Azure repositories are not reliable, we need to prevent azure giving us packages. - name: Make apt sources.list use the default Ubuntu repositories @@ -161,7 +161,7 @@ jobs: # Upload cache on completion and check it out now - name: Load .scons_cache directory id: linux-sanitizer-cache - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: ${{github.workspace}}/.scons_cache/ key: ${{github.job}}-${{env.GODOT_BASE_BRANCH}}-${{github.ref}}-${{github.sha}} @@ -173,7 +173,7 @@ jobs: # Use python 3.x release (works cross platform; best to keep self contained in it's own step) - name: Set up Python 3.x - uses: actions/setup-python@v2 + uses: actions/setup-python@v5 with: # Semantic version range syntax or exact version of a Python version python-version: '3.x' diff --git a/.github/workflows/macos_builds.yml b/.github/workflows/macos_builds.yml index 973f21b4aa5..8c5397d409b 100644 --- a/.github/workflows/macos_builds.yml +++ b/.github/workflows/macos_builds.yml @@ -14,12 +14,12 @@ jobs: name: Editor (target=release_debug, tools=yes) steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 # Upload cache on completion and check it out now - name: Load .scons_cache directory id: macos-editor-cache - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: ${{github.workspace}}/.scons_cache/ key: ${{github.job}}-${{env.GODOT_BASE_BRANCH}}-${{github.ref}}-${{github.sha}} @@ -31,7 +31,7 @@ jobs: # Use python 3.x release (works cross platform; best to keep self contained in it's own step) - name: Set up Python 3.x - uses: actions/setup-python@v2 + uses: actions/setup-python@v5 with: # Semantic version range syntax or exact version of a Python version python-version: '3.x' @@ -54,7 +54,7 @@ jobs: scons tools=yes target=release_debug ls -l bin/ - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v4 with: name: ${{ github.job }} path: bin/* @@ -65,12 +65,12 @@ jobs: name: Template (target=release, tools=no) steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 # Upload cache on completion and check it out now - name: Load .scons_cache directory id: macos-template-cache - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: ${{github.workspace}}/.scons_cache/ key: ${{github.job}}-${{env.GODOT_BASE_BRANCH}}-${{github.ref}}-${{github.sha}} @@ -82,7 +82,7 @@ jobs: # Use python 3.x release (works cross platform) - name: Set up Python 3.x - uses: actions/setup-python@v2 + uses: actions/setup-python@v5 with: # Semantic version range syntax or exact version of a Python version python-version: '3.x' @@ -104,7 +104,7 @@ jobs: scons target=release tools=no ls -l bin/ - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v4 with: name: ${{ github.job }} path: bin/* diff --git a/.github/workflows/server_builds.yml b/.github/workflows/server_builds.yml index 5af9a7b3149..04c56df5ba5 100644 --- a/.github/workflows/server_builds.yml +++ b/.github/workflows/server_builds.yml @@ -13,7 +13,7 @@ jobs: name: Linux Headless w/ Mono (target=release_debug, tools=yes) steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 # Azure repositories are not reliable, we need to prevent azure giving us packages. - name: Make apt sources.list use the default Ubuntu repositories @@ -30,7 +30,7 @@ jobs: # Upload cache on completion and check it out now - name: Load .scons_cache directory id: linux-headless-cache - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: ${{github.workspace}}/.scons_cache/ key: ${{github.job}}-${{env.GODOT_BASE_BRANCH}}-${{github.ref}}-${{github.sha}} @@ -42,7 +42,7 @@ jobs: # Use python 3.x release (works cross platform; best to keep self contained in it's own step) - name: Set up Python 3.x - uses: actions/setup-python@v2 + uses: actions/setup-python@v5 with: # Semantic version range syntax or exact version of a Python version python-version: '3.x' @@ -69,7 +69,7 @@ jobs: name: Linux Server w/ Mono (target=release, tools=no) steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 # Azure repositories are not reliable, we need to prevent azure giving us packages. - name: Make apt sources.list use the default Ubuntu repositories @@ -86,7 +86,7 @@ jobs: # Upload cache on completion and check it out now - name: Load .scons_cache directory id: linux-server-cache - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: ${{github.workspace}}/.scons_cache/ key: ${{github.job}}-${{env.GODOT_BASE_BRANCH}}-${{github.ref}}-${{github.sha}} @@ -98,7 +98,7 @@ jobs: # Use python 3.x release (works cross platform) - name: Set up Python 3.x - uses: actions/setup-python@v2 + uses: actions/setup-python@v5 with: # Semantic version range syntax or exact version of a Python version python-version: '3.x' diff --git a/.github/workflows/static_checks.yml b/.github/workflows/static_checks.yml index 30468034ff8..3f7f0fabdc2 100644 --- a/.github/workflows/static_checks.yml +++ b/.github/workflows/static_checks.yml @@ -7,7 +7,7 @@ jobs: runs-on: ubuntu-20.04 steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 # Azure repositories are not reliable, we need to prevent Azure giving us packages. - name: Make apt sources.list use the default Ubuntu repositories diff --git a/.github/workflows/windows_builds.yml b/.github/workflows/windows_builds.yml index b793911d468..a5ad981f21b 100644 --- a/.github/workflows/windows_builds.yml +++ b/.github/workflows/windows_builds.yml @@ -18,13 +18,17 @@ jobs: name: Editor (target=release_debug, tools=yes) steps: - - uses: actions/checkout@v2 +<<<<<<< HEAD + - uses: actions/checkout@v4 +======= + - uses: actions/checkout@v4 +>>>>>>> 6b202812ff (CI: Update all GitHub actions to their latest version) # Upload cache on completion and check it out now # Editing this is pretty dangerous for Windows since it can break and needs to be properly tested with a fresh cache. - name: Load .scons_cache directory id: windows-editor-cache - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: /.scons_cache/ key: ${{github.job}}-${{env.GODOT_BASE_BRANCH}}-${{github.ref}}-${{github.sha}} @@ -36,7 +40,7 @@ jobs: # Use python 3.x release (works cross platform; best to keep self contained in it's own step) - name: Set up Python 3.x - uses: actions/setup-python@v2 + uses: actions/setup-python@v5 with: # Semantic version range syntax or exact version of a Python version python-version: '3.x' @@ -59,7 +63,7 @@ jobs: scons tools=yes target=release_debug ls -l bin/ - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v4 with: name: ${{ github.job }} path: bin/* @@ -70,13 +74,13 @@ jobs: name: Template (target=release, tools=no) steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 # Upload cache on completion and check it out now # Editing this is pretty dangerous for Windows since it can break and needs to be properly tested with a fresh cache. - name: Load .scons_cache directory id: windows-template-cache - uses: RevoluPowered/cache@v2.1 + uses: RevoluPowered/cache@v4.1 with: path: /.scons_cache/ key: ${{github.job}}-${{env.GODOT_BASE_BRANCH}}-${{github.ref}}-${{github.sha}} @@ -88,7 +92,7 @@ jobs: # Use python 3.x release (works cross platform) - name: Set up Python 3.x - uses: actions/setup-python@v2 + uses: actions/setup-python@v5 with: # Semantic version range syntax or exact version of a Python version python-version: '3.x' @@ -110,7 +114,7 @@ jobs: scons target=release tools=no ls -l bin/ - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v4 with: name: ${{ github.job }} path: bin/*