GH: Fix test workflow errors and enable CI
This commit is contained in:
parent
bdb158ff27
commit
14128948ee
|
@ -1,29 +1,26 @@
|
||||||
name: 🔧 Test builds
|
name: 🔧 Test builds
|
||||||
on:
|
on:
|
||||||
workflow_call:
|
|
||||||
inputs:
|
|
||||||
godot-treeish:
|
|
||||||
description: A tag, branch or commit hash in the Godot repository.
|
|
||||||
type: string
|
|
||||||
default: master
|
|
||||||
limboai-treeish:
|
|
||||||
description: A tag, branch or commit hash in the LimboAI repository.
|
|
||||||
type: string
|
|
||||||
default: master
|
|
||||||
|
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
|
||||||
godot-treeish:
|
push:
|
||||||
description: A tag, branch or commit hash in the Godot repository.
|
branches: [ master, github-workflows ]
|
||||||
type: string
|
paths-ignore:
|
||||||
default: master
|
- "README.md"
|
||||||
limboai-treeish:
|
- "LICENSE"
|
||||||
description: A tag, branch or commit hash in the LimboAI repository.
|
- "**/*.png"
|
||||||
type: string
|
- "demo/*"
|
||||||
default: master
|
|
||||||
|
pull_request:
|
||||||
|
branches: [ master ]
|
||||||
|
paths-ignore:
|
||||||
|
- "README.md"
|
||||||
|
- "LICENSE"
|
||||||
|
- "**/*.png"
|
||||||
|
- "demo/*"
|
||||||
|
|
||||||
# Global Settings
|
# Global Settings
|
||||||
env:
|
env:
|
||||||
|
GODOT_TREEISH: 4.1.1-stable
|
||||||
SCONS_CACHE_MSVC_CONFIG: true
|
SCONS_CACHE_MSVC_CONFIG: true
|
||||||
SCONS_CACHE_LIMIT: 4096
|
SCONS_CACHE_LIMIT: 4096
|
||||||
SCONSFLAGS: verbose=yes warnings=extra werror=yes
|
SCONSFLAGS: verbose=yes warnings=extra werror=yes
|
||||||
|
@ -63,20 +60,19 @@ jobs:
|
||||||
sconsflags: production=yes
|
sconsflags: production=yes
|
||||||
|
|
||||||
env:
|
env:
|
||||||
BIN: godot.linuxbsd.${{matrix.target}}.${{matrix.arch}}${{ matrix.build-mono == true && '.mono' || '' }}
|
BIN: godot.linuxbsd.${{matrix.target}}.${{matrix.arch}}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Clone Godot
|
- name: Clone Godot
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
repository: godotengine/godot
|
repository: godotengine/godot
|
||||||
ref: ${{ inputs.godot-treeish }}
|
ref: ${{ env.GODOT_TREEISH }}
|
||||||
|
|
||||||
- name: Clone LimboAI module
|
- name: Clone LimboAI module
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
path: modules/limboai
|
path: modules/limboai
|
||||||
ref: ${{ inputs.limboai-treeish }}
|
|
||||||
|
|
||||||
# Inits GODOT_VERSION, LIMBOAI_VERSION and NAME_PREFIX environment variables.
|
# Inits GODOT_VERSION, LIMBOAI_VERSION and NAME_PREFIX environment variables.
|
||||||
- uses: ./modules/limboai/.github/actions/init-version
|
- uses: ./modules/limboai/.github/actions/init-version
|
||||||
|
@ -107,11 +103,11 @@ jobs:
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
path: ${{github.workspace}}/.scons_cache/
|
path: ${{github.workspace}}/.scons_cache/
|
||||||
key: ${{matrix.cache-name}}-${{env.GODOT_BASE_BRANCH}}-${{github.ref}}-${{github.sha}}
|
key: ${{env.BIN}}-${{env.GODOT_TREEISH}}-${{github.ref}}-${{github.sha}}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{env.BIN}}-${{env.GODOT_BASE_BRANCH}}-${{github.ref}}-${{github.sha}}
|
${{env.BIN}}-${{env.GODOT_TREEISH}}-${{github.ref}}-${{github.sha}}
|
||||||
${{env.BIN}}-${{env.GODOT_BASE_BRANCH}}-${{github.ref}}
|
${{env.BIN}}-${{env.GODOT_TREEISH}}-${{github.ref}}
|
||||||
${{env.BIN}}-${{env.GODOT_BASE_BRANCH}}
|
${{env.BIN}}-${{env.GODOT_TREEISH}}
|
||||||
|
|
||||||
- name: Compilation
|
- name: Compilation
|
||||||
env:
|
env:
|
||||||
|
@ -143,7 +139,7 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
./out/${{ env.BIN }} --version
|
./out/${{ env.BIN }} --version
|
||||||
./out/${{ env.BIN }} --help
|
./out/${{ env.BIN }} --help
|
||||||
./out/${{ env.BIN }} --headless --test --test-case="*[LimboAI]*"
|
./out/${{ env.BIN }} --headless --test
|
||||||
|
|
||||||
windows-dot-net:
|
windows-dot-net:
|
||||||
runs-on: "windows-latest"
|
runs-on: "windows-latest"
|
||||||
|
@ -172,13 +168,12 @@ jobs:
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
repository: godotengine/godot
|
repository: godotengine/godot
|
||||||
ref: ${{ inputs.godot-treeish }}
|
ref: ${{ env.GODOT_TREEISH }}
|
||||||
|
|
||||||
- name: Clone LimboAI module
|
- name: Clone LimboAI module
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
path: modules/limboai
|
path: modules/limboai
|
||||||
ref: ${{ inputs.limboai-treeish }}
|
|
||||||
|
|
||||||
# Inits GODOT_VERSION, LIMBOAI_VERSION and NAME_PREFIX environment variables.
|
# Inits GODOT_VERSION, LIMBOAI_VERSION and NAME_PREFIX environment variables.
|
||||||
- uses: ./modules/limboai/.github/actions/init-version
|
- uses: ./modules/limboai/.github/actions/init-version
|
||||||
|
@ -203,11 +198,11 @@ jobs:
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
path: ${{github.workspace}}/.scons_cache/
|
path: ${{github.workspace}}/.scons_cache/
|
||||||
key: ${{matrix.cache-name}}-${{env.GODOT_BASE_BRANCH}}-${{github.ref}}-${{github.sha}}
|
key: ${{env.BIN}}-${{env.GODOT_TREEISH}}-${{github.ref}}-${{github.sha}}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{env.BIN}}-${{env.GODOT_BASE_BRANCH}}-${{github.ref}}-${{github.sha}}
|
${{env.BIN}}-${{env.GODOT_TREEISH}}-${{github.ref}}-${{github.sha}}
|
||||||
${{env.BIN}}-${{env.GODOT_BASE_BRANCH}}-${{github.ref}}
|
${{env.BIN}}-${{env.GODOT_TREEISH}}-${{github.ref}}
|
||||||
${{env.BIN}}-${{env.GODOT_BASE_BRANCH}}
|
${{env.BIN}}-${{env.GODOT_TREEISH}}
|
||||||
|
|
||||||
- name: Compilation
|
- name: Compilation
|
||||||
env:
|
env:
|
||||||
|
|
Loading…
Reference in New Issue