summaryrefslogtreecommitdiffstats
path: root/.github/actions
diff options
context:
space:
mode:
Diffstat (limited to '.github/actions')
-rw-r--r--.github/actions/download-artifact/action.yml8
-rw-r--r--.github/actions/godot-api-dump/action.yml8
-rw-r--r--.github/actions/godot-build/action.yml18
-rw-r--r--.github/actions/godot-cache-restore/action.yml19
-rw-r--r--.github/actions/godot-cache-save/action.yml11
-rw-r--r--.github/actions/godot-converter-test/action.yml4
-rw-r--r--.github/actions/godot-deps/action.yml10
-rw-r--r--.github/actions/godot-project-test/action.yml4
-rw-r--r--.github/actions/upload-artifact/action.yml8
9 files changed, 53 insertions, 37 deletions
diff --git a/.github/actions/download-artifact/action.yml b/.github/actions/download-artifact/action.yml
index 534b3251c5..c2a3d777c4 100644
--- a/.github/actions/download-artifact/action.yml
+++ b/.github/actions/download-artifact/action.yml
@@ -1,15 +1,17 @@
name: Download Godot artifact
description: Download the Godot artifact.
+
inputs:
name:
description: The artifact name.
- default: "${{ github.job }}"
+ default: ${{ github.job }}
path:
description: The path to download and extract to.
required: true
- default: "./"
+ default: ./
+
runs:
- using: "composite"
+ using: composite
steps:
- name: Download Godot Artifact
uses: actions/download-artifact@v4
diff --git a/.github/actions/godot-api-dump/action.yml b/.github/actions/godot-api-dump/action.yml
index 7730688661..dee70298c4 100644
--- a/.github/actions/godot-api-dump/action.yml
+++ b/.github/actions/godot-api-dump/action.yml
@@ -1,11 +1,13 @@
name: Dump Godot API
description: Dump Godot API for GDExtension
+
inputs:
bin:
description: The path to the Godot executable
required: true
+
runs:
- using: "composite"
+ using: composite
steps:
# Dump GDExtension interface and API
- name: Dump GDExtension interface and API for godot-cpp build
@@ -19,5 +21,5 @@ runs:
- name: Upload API dump
uses: ./.github/actions/upload-artifact
with:
- name: 'godot-api-dump'
- path: './godot-api/*'
+ name: godot-api-dump
+ path: ./godot-api/*
diff --git a/.github/actions/godot-build/action.yml b/.github/actions/godot-build/action.yml
index 61613d2628..93d6f076b7 100644
--- a/.github/actions/godot-build/action.yml
+++ b/.github/actions/godot-build/action.yml
@@ -1,9 +1,10 @@
name: Build Godot
description: Build Godot with the provided options.
+
inputs:
target:
description: Build target (editor, template_release, template_debug).
- default: "editor"
+ default: editor
tests:
description: Unit tests.
default: false
@@ -13,25 +14,26 @@ inputs:
required: false
sconsflags:
description: Additional SCons flags.
- default: ""
+ default: ''
required: false
scons-cache:
description: The SCons cache path.
- default: "${{ github.workspace }}/.scons-cache/"
+ default: ${{ github.workspace }}/.scons-cache/
scons-cache-limit:
description: The SCons cache size limit.
# actions/cache has 10 GiB limit, and GitHub runners have a 14 GiB disk.
# Limit to 7 GiB to avoid having the extracted cache fill the disk.
default: 7168
+
runs:
- using: "composite"
+ using: composite
steps:
- - name: Scons Build
+ - name: SCons Build
shell: sh
env:
- SCONSFLAGS: ${{ inputs.sconsflags }}
- SCONS_CACHE: ${{ inputs.scons-cache }}
- SCONS_CACHE_LIMIT: ${{ inputs.scons-cache-limit }}
+ SCONSFLAGS: ${{ inputs.sconsflags }}
+ SCONS_CACHE: ${{ inputs.scons-cache }}
+ SCONS_CACHE_LIMIT: ${{ inputs.scons-cache-limit }}
run: |
echo "Building with flags:" platform=${{ inputs.platform }} target=${{ inputs.target }} tests=${{ inputs.tests }} ${{ env.SCONSFLAGS }}
diff --git a/.github/actions/godot-cache-restore/action.yml b/.github/actions/godot-cache-restore/action.yml
index eb955affef..7abec20a28 100644
--- a/.github/actions/godot-cache-restore/action.yml
+++ b/.github/actions/godot-cache-restore/action.yml
@@ -3,18 +3,19 @@ description: Restore Godot build cache.
inputs:
cache-name:
description: The cache base name (job name by default).
- default: "${{github.job}}"
+ default: ${{ github.job }}
scons-cache:
description: The SCons cache path.
- default: "${{github.workspace}}/.scons-cache/"
+ default: ${{ github.workspace }}/.scons-cache/
+
runs:
- using: "composite"
+ using: composite
steps:
- name: Restore SCons cache directory
uses: actions/cache/restore@v4
with:
- path: ${{inputs.scons-cache}}
- key: ${{inputs.cache-name}}-${{env.GODOT_BASE_BRANCH}}-${{github.ref}}-${{github.sha}}
+ path: ${{ inputs.scons-cache }}
+ key: ${{ inputs.cache-name }}-${{ env.GODOT_BASE_BRANCH }}-${{ github.ref }}-${{ github.sha }}
# We try to match an existing cache to restore from it. Each potential key is checked against
# all existing caches as a prefix. E.g. 'linux-template-minimal' would match any cache that
@@ -28,7 +29,7 @@ runs:
# 4. A partial match for the same base branch only (not ideal, matches any PR with the same base branch).
restore-keys: |
- ${{inputs.cache-name}}-${{env.GODOT_BASE_BRANCH}}-${{github.ref}}-${{github.sha}}
- ${{inputs.cache-name}}-${{env.GODOT_BASE_BRANCH}}-${{github.ref}}
- ${{inputs.cache-name}}-${{env.GODOT_BASE_BRANCH}}-refs/heads/${{env.GODOT_BASE_BRANCH}}
- ${{inputs.cache-name}}-${{env.GODOT_BASE_BRANCH}}
+ ${{ inputs.cache-name }}-${{ env.GODOT_BASE_BRANCH }}-${{ github.ref }}-${{ github.sha }}
+ ${{ inputs.cache-name }}-${{ env.GODOT_BASE_BRANCH }}-${{ github.ref }}
+ ${{ inputs.cache-name }}-${{ env.GODOT_BASE_BRANCH }}-refs/heads/${{ env.GODOT_BASE_BRANCH }}
+ ${{ inputs.cache-name }}-${{ env.GODOT_BASE_BRANCH }}
diff --git a/.github/actions/godot-cache-save/action.yml b/.github/actions/godot-cache-save/action.yml
index b7cbf91f94..df877cec67 100644
--- a/.github/actions/godot-cache-save/action.yml
+++ b/.github/actions/godot-cache-save/action.yml
@@ -3,15 +3,16 @@ description: Save Godot build cache.
inputs:
cache-name:
description: The cache base name (job name by default).
- default: "${{github.job}}"
+ default: ${{ github.job }}
scons-cache:
description: The SCons cache path.
- default: "${{github.workspace}}/.scons-cache/"
+ default: ${{ github.workspace }}/.scons-cache/
+
runs:
- using: "composite"
+ using: composite
steps:
- name: Save SCons cache directory
uses: actions/cache/save@v4
with:
- path: ${{inputs.scons-cache}}
- key: ${{inputs.cache-name}}-${{env.GODOT_BASE_BRANCH}}-${{github.ref}}-${{github.sha}}
+ path: ${{ inputs.scons-cache }}
+ key: ${{ inputs.cache-name }}-${{ env.GODOT_BASE_BRANCH }}-${{ github.ref }}-${{ github.sha }}
diff --git a/.github/actions/godot-converter-test/action.yml b/.github/actions/godot-converter-test/action.yml
index 919a76e693..ffd558d98b 100644
--- a/.github/actions/godot-converter-test/action.yml
+++ b/.github/actions/godot-converter-test/action.yml
@@ -1,11 +1,13 @@
name: Test Godot project converter
description: Test the Godot project converter.
+
inputs:
bin:
description: The path to the Godot executable
required: true
+
runs:
- using: "composite"
+ using: composite
steps:
- name: Test 3-to-4 conversion
shell: sh
diff --git a/.github/actions/godot-deps/action.yml b/.github/actions/godot-deps/action.yml
index 99404657c6..eb9bdef1e7 100644
--- a/.github/actions/godot-deps/action.yml
+++ b/.github/actions/godot-deps/action.yml
@@ -1,17 +1,19 @@
name: Setup Python and SCons
description: Setup Python, install the pip version of SCons.
+
inputs:
python-version:
description: The Python version to use.
- default: "3.x"
+ default: 3.x
python-arch:
description: The Python architecture.
- default: "x64"
+ default: x64
scons-version:
description: The SCons version to use.
- default: "4.8.0"
+ default: 4.8.0
+
runs:
- using: "composite"
+ using: composite
steps:
- name: Set up Python 3.x
uses: actions/setup-python@v5
diff --git a/.github/actions/godot-project-test/action.yml b/.github/actions/godot-project-test/action.yml
index fd8c024a37..36448cd50a 100644
--- a/.github/actions/godot-project-test/action.yml
+++ b/.github/actions/godot-project-test/action.yml
@@ -1,11 +1,13 @@
name: Test Godot project
description: Run the test Godot project.
+
inputs:
bin:
description: The path to the Godot executable
required: true
+
runs:
- using: "composite"
+ using: composite
steps:
# Download and extract zip archive with project, folder is renamed to be able to easy change used project
- name: Download test project
diff --git a/.github/actions/upload-artifact/action.yml b/.github/actions/upload-artifact/action.yml
index 80c680103d..8524afdf59 100644
--- a/.github/actions/upload-artifact/action.yml
+++ b/.github/actions/upload-artifact/action.yml
@@ -1,15 +1,17 @@
name: Upload Godot artifact
description: Upload the Godot artifact.
+
inputs:
name:
description: The artifact name.
- default: "${{ github.job }}"
+ default: ${{ github.job }}
path:
description: The path to upload.
required: true
- default: "bin/*"
+ default: bin/*
+
runs:
- using: "composite"
+ using: composite
steps:
- name: Upload Godot Artifact
uses: actions/upload-artifact@v4