CI: Bump various GitHub actions to latest versions

actions/cache@v3
actions/checkout@v3
actions/upload-artifact@v3
actions/setup-dotnet@v2
actions/setup-java@v3
actions/setup-python@v4
mymindstorm/setup-emsdk@v11

Also reset cache keys as we're going to cleanup all caches.
This commit is contained in:
Rémi Verschelde 2022-08-25 13:44:22 +02:00
parent c7eb423eeb
commit ef28da8006
9 changed files with 18 additions and 17 deletions

View file

@ -12,7 +12,7 @@ runs:
steps: steps:
# Use python 3.x release (works cross platform) # Use python 3.x release (works cross platform)
- name: Set up Python 3.x - name: Set up Python 3.x
uses: actions/setup-python@v2 uses: actions/setup-python@v4
with: with:
# Semantic version range syntax or exact version of a Python version # Semantic version range syntax or exact version of a Python version
python-version: ${{ inputs.python-version }} python-version: ${{ inputs.python-version }}

View file

@ -12,7 +12,7 @@ runs:
using: "composite" using: "composite"
steps: steps:
- name: Upload Godot Artifact - name: Upload Godot Artifact
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v3
with: with:
name: ${{ inputs.name }} name: ${{ inputs.name }}
path: ${{ inputs.path }} path: ${{ inputs.path }}

View file

@ -17,7 +17,7 @@ jobs:
name: Template (target=release, tools=no) name: Template (target=release, tools=no)
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
# Azure repositories are not reliable, we need to prevent azure giving us packages. # Azure repositories are not reliable, we need to prevent azure giving us packages.
- name: Make apt sources.list use the default Ubuntu repositories - name: Make apt sources.list use the default Ubuntu repositories
@ -27,8 +27,9 @@ jobs:
sudo apt-get update sudo apt-get update
- name: Set up Java 11 - name: Set up Java 11
uses: actions/setup-java@v1 uses: actions/setup-java@v3
with: with:
distribution: temurin
java-version: 11 java-version: 11
- name: Setup Godot build cache - name: Setup Godot build cache

View file

@ -17,7 +17,7 @@ jobs:
name: Template (target=release, tools=no) name: Template (target=release, tools=no)
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- name: Setup Godot build cache - name: Setup Godot build cache
uses: ./.github/actions/godot-cache uses: ./.github/actions/godot-cache

View file

@ -19,18 +19,18 @@ jobs:
name: Template (target=release, tools=no) name: Template (target=release, tools=no)
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
# Additional cache for Emscripten generated system libraries # Additional cache for Emscripten generated system libraries
- name: Load Emscripten cache - name: Load Emscripten cache
id: javascript-template-emscripten-cache id: javascript-template-emscripten-cache
uses: actions/cache@v2 uses: actions/cache@v3
with: with:
path: ${{env.EM_CACHE_FOLDER}} path: ${{env.EM_CACHE_FOLDER}}
key: ${{env.EM_VERSION}}-${{github.job}} key: ${{env.EM_VERSION}}-${{github.job}}
- name: Set up Emscripten latest - name: Set up Emscripten latest
uses: mymindstorm/setup-emsdk@v10 uses: mymindstorm/setup-emsdk@v11
with: with:
version: ${{env.EM_VERSION}} version: ${{env.EM_VERSION}}
actions-cache-folder: ${{env.EM_CACHE_FOLDER}} actions-cache-folder: ${{env.EM_CACHE_FOLDER}}

View file

@ -4,7 +4,7 @@ on: [push, pull_request]
# Global Settings # Global Settings
env: env:
# Only used for the cache key. Increment version to force clean build. # Only used for the cache key. Increment version to force clean build.
GODOT_BASE_BRANCH: master-v2 GODOT_BASE_BRANCH: master
SCONSFLAGS: verbose=yes warnings=extra werror=yes module_text_server_fb_enabled=yes SCONSFLAGS: verbose=yes warnings=extra werror=yes module_text_server_fb_enabled=yes
DOTNET_NOLOGO: true DOTNET_NOLOGO: true
DOTNET_CLI_TELEMETRY_OPTOUT: false DOTNET_CLI_TELEMETRY_OPTOUT: false
@ -77,7 +77,7 @@ jobs:
artifact: true artifact: true
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- name: Linux dependencies - name: Linux dependencies
shell: bash shell: bash
@ -102,7 +102,7 @@ jobs:
uses: ./.github/actions/godot-deps uses: ./.github/actions/godot-deps
- name: Set up .NET Sdk - name: Set up .NET Sdk
uses: actions/setup-dotnet@v1 uses: actions/setup-dotnet@v2
if: ${{ matrix.build-mono }} if: ${{ matrix.build-mono }}
with: with:
dotnet-version: '6.0.x' dotnet-version: '6.0.x'
@ -195,7 +195,7 @@ jobs:
# Checkout godot-cpp # Checkout godot-cpp
- name: Checkout godot-cpp - name: Checkout godot-cpp
if: ${{ matrix.godot-cpp-test }} if: ${{ matrix.godot-cpp-test }}
uses: actions/checkout@v2 uses: actions/checkout@v3
with: with:
repository: godotengine/godot-cpp repository: godotengine/godot-cpp
submodules: 'recursive' submodules: 'recursive'

View file

@ -4,7 +4,7 @@ on: [push, pull_request]
# Global Settings # Global Settings
env: env:
# Only used for the cache key. Increment version to force clean build. # Only used for the cache key. Increment version to force clean build.
GODOT_BASE_BRANCH: master-v3 GODOT_BASE_BRANCH: master
SCONSFLAGS: verbose=yes warnings=extra werror=yes module_text_server_fb_enabled=yes SCONSFLAGS: verbose=yes warnings=extra werror=yes module_text_server_fb_enabled=yes
concurrency: concurrency:
@ -34,7 +34,7 @@ jobs:
sconsflags: debug_symbols=no sconsflags: debug_symbols=no
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- name: Setup Godot build cache - name: Setup Godot build cache
uses: ./.github/actions/godot-cache uses: ./.github/actions/godot-cache

View file

@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v2 uses: actions/checkout@v3
# Azure repositories are not reliable, we need to prevent Azure giving us packages. # Azure repositories are not reliable, we need to prevent Azure giving us packages.
- name: Make apt sources.list use the default Ubuntu repositories - name: Make apt sources.list use the default Ubuntu repositories

View file

@ -5,7 +5,7 @@ on: [push, pull_request]
# SCONS_CACHE for windows must be set in the build environment # SCONS_CACHE for windows must be set in the build environment
env: env:
# Only used for the cache key. Increment version to force clean build. # Only used for the cache key. Increment version to force clean build.
GODOT_BASE_BRANCH: master-v2 GODOT_BASE_BRANCH: master
SCONSFLAGS: verbose=yes warnings=all werror=yes module_text_server_fb_enabled=yes SCONSFLAGS: verbose=yes warnings=all werror=yes module_text_server_fb_enabled=yes
SCONS_CACHE_MSVC_CONFIG: true SCONS_CACHE_MSVC_CONFIG: true
@ -39,7 +39,7 @@ jobs:
sconsflags: debug_symbols=no sconsflags: debug_symbols=no
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- name: Setup Godot build cache - name: Setup Godot build cache
uses: ./.github/actions/godot-cache uses: ./.github/actions/godot-cache