Skip to content

Commit

Permalink
GHA: Fix inputs in test_builds.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
limbonaut committed Jan 13, 2024
1 parent c875f9d commit 46cd946
Showing 1 changed file with 30 additions and 27 deletions.
57 changes: 30 additions & 27 deletions .github/workflows/test_builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 ]
Expand All @@ -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:
Expand All @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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

0 comments on commit 46cd946

Please sign in to comment.