GHA: Fix inputs in test_builds.yml
This commit is contained in:
parent
c875f9d5d6
commit
46cd946d35
|
@ -10,15 +10,6 @@ on:
|
|||
- "**/*.png"
|
||||
- "demo/*"
|
||||
- "doc/*"
|
||||
inputs:
|
||||
godot-treeish:
|
||||
description: A tag, branch or commit hash in the Godot repository.
|
||||
type: string
|
||||
default: 4.2.1-stable
|
||||
godot-cpp-version:
|
||||
description: Ref in the godot-cpp repository.
|
||||
type: string
|
||||
default: 4.2
|
||||
|
||||
pull_request:
|
||||
branches: [ master ]
|
||||
|
@ -28,15 +19,11 @@ on:
|
|||
- "**/*.png"
|
||||
- "demo/*"
|
||||
- "doc/*"
|
||||
inputs:
|
||||
godot-treeish:
|
||||
description: A tag, branch or commit hash in the Godot repository.
|
||||
type: string
|
||||
default: 4.2.1-stable
|
||||
godot-cpp-version:
|
||||
description: Ref in the godot-cpp repository.
|
||||
type: string
|
||||
default: 4.2
|
||||
|
||||
# Global Settings.
|
||||
env:
|
||||
GODOT_REF: "4.2.1-stable"
|
||||
GODOT_CPP_REF: "4.2"
|
||||
|
||||
jobs:
|
||||
unit-tests:
|
||||
|
@ -54,7 +41,7 @@ jobs:
|
|||
uses: actions/checkout@v4
|
||||
with:
|
||||
repository: godotengine/godot
|
||||
ref: ${{ inputs.godot-treeish }}
|
||||
ref: ${{ env.GODOT_REF }}
|
||||
|
||||
- name: Clone LimboAI module
|
||||
uses: actions/checkout@v4
|
||||
|
@ -76,11 +63,11 @@ jobs:
|
|||
uses: actions/cache@v3
|
||||
with:
|
||||
path: ${{github.workspace}}/.scons_cache/
|
||||
key: ${{env.BIN}}-${{inputs.godot-treeish}}-${{github.ref}}-${{github.sha}}
|
||||
key: ${{env.BIN}}-${{env.GODOT_REF}}-${{github.ref}}-${{github.sha}}
|
||||
restore-keys: |
|
||||
${{env.BIN}}-${{inputs.godot-treeish}}-${{github.ref}}-${{github.sha}}
|
||||
${{env.BIN}}-${{inputs.godot-treeish}}-${{github.ref}}
|
||||
${{env.BIN}}-${{inputs.godot-treeish}}
|
||||
${{env.BIN}}-${{env.GODOT_REF}}-${{github.ref}}-${{github.sha}}
|
||||
${{env.BIN}}-${{env.GODOT_REF}}-${{github.ref}}
|
||||
${{env.BIN}}-${{env.GODOT_REF}}
|
||||
continue-on-error: true
|
||||
|
||||
- name: Set up Python 3.x
|
||||
|
@ -116,34 +103,50 @@ jobs:
|
|||
run: |
|
||||
bin/${{ env.BIN }} --test --headless
|
||||
|
||||
cache-env:
|
||||
runs-on: ubuntu-latest
|
||||
outputs:
|
||||
godot-ref: ${{ steps.cache-env.outputs.godot-ref }}
|
||||
godot-cpp-ref: ${{ steps.cache-env.outputs.godot-cpp-ref }}
|
||||
steps:
|
||||
- name: Cache env
|
||||
id: cache-env
|
||||
run: |
|
||||
echo "godot-ref=${GODOT_REF}" >> "$GITHUB_OUTPUT"
|
||||
echo "godot-cpp-ref=${GODOT_CPP_REF}" >> "$GITHUB_OUTPUT"
|
||||
|
||||
linux-test-build:
|
||||
name: 🐧 Linux
|
||||
needs: cache-env
|
||||
uses: ./.github/workflows/linux.yml
|
||||
with:
|
||||
godot-treeish: ${{ inputs.godot-treeish }}
|
||||
godot-treeish: ${{ needs.cache-env.outputs.godot-ref }}
|
||||
limboai-treeish: ${{ github.sha }}
|
||||
test-build: true
|
||||
|
||||
windows-test-build:
|
||||
name: 🪟 Windows
|
||||
needs: cache-env
|
||||
uses: ./.github/workflows/windows.yml
|
||||
with:
|
||||
godot-treeish: ${{ inputs.godot-treeish }}
|
||||
godot-treeish: ${{ needs.cache-env.outputs.godot-ref }}
|
||||
limboai-treeish: ${{ github.sha }}
|
||||
test-build: true
|
||||
|
||||
macos-test-build:
|
||||
name: 🍎 macOS
|
||||
needs: cache-env
|
||||
uses: ./.github/workflows/macos.yml
|
||||
with:
|
||||
godot-treeish: ${{ inputs.godot-treeish }}
|
||||
godot-treeish: ${{ needs.cache-env.outputs.godot-ref }}
|
||||
limboai-treeish: ${{ github.sha }}
|
||||
test-build: true
|
||||
|
||||
gdextension:
|
||||
name: 🔌 GDExtension
|
||||
needs: cache-env
|
||||
uses: ./.github/workflows/gdextension.yml
|
||||
with:
|
||||
godot-cpp-treeish: 4.2
|
||||
godot-cpp-treeish: ${{ needs.cache-env.outputs.godot-cpp-ref }}
|
||||
limboai-treeish: ${{ github.sha }}
|
||||
test-build: true
|
||||
|
|
Loading…
Reference in New Issue