GH: Fix test workflow errors and enable CI

This commit is contained in:
Serhii Snitsaruk 2023-09-13 10:25:18 +02:00
parent bdb158ff27
commit 14128948ee
1 changed files with 29 additions and 34 deletions

View File

@ -1,29 +1,26 @@
name: 🔧 Test builds
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:
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
push:
branches: [ master, github-workflows ]
paths-ignore:
- "README.md"
- "LICENSE"
- "**/*.png"
- "demo/*"
pull_request:
branches: [ master ]
paths-ignore:
- "README.md"
- "LICENSE"
- "**/*.png"
- "demo/*"
# Global Settings
env:
GODOT_TREEISH: 4.1.1-stable
SCONS_CACHE_MSVC_CONFIG: true
SCONS_CACHE_LIMIT: 4096
SCONSFLAGS: verbose=yes warnings=extra werror=yes
@ -63,20 +60,19 @@ jobs:
sconsflags: production=yes
env:
BIN: godot.linuxbsd.${{matrix.target}}.${{matrix.arch}}${{ matrix.build-mono == true && '.mono' || '' }}
BIN: godot.linuxbsd.${{matrix.target}}.${{matrix.arch}}
steps:
- name: Clone Godot
uses: actions/checkout@v3
with:
repository: godotengine/godot
ref: ${{ inputs.godot-treeish }}
ref: ${{ env.GODOT_TREEISH }}
- name: Clone LimboAI module
uses: actions/checkout@v3
with:
path: modules/limboai
ref: ${{ inputs.limboai-treeish }}
# Inits GODOT_VERSION, LIMBOAI_VERSION and NAME_PREFIX environment variables.
- uses: ./modules/limboai/.github/actions/init-version
@ -107,11 +103,11 @@ jobs:
uses: actions/cache@v3
with:
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: |
${{env.BIN}}-${{env.GODOT_BASE_BRANCH}}-${{github.ref}}-${{github.sha}}
${{env.BIN}}-${{env.GODOT_BASE_BRANCH}}-${{github.ref}}
${{env.BIN}}-${{env.GODOT_BASE_BRANCH}}
${{env.BIN}}-${{env.GODOT_TREEISH}}-${{github.ref}}-${{github.sha}}
${{env.BIN}}-${{env.GODOT_TREEISH}}-${{github.ref}}
${{env.BIN}}-${{env.GODOT_TREEISH}}
- name: Compilation
env:
@ -143,7 +139,7 @@ jobs:
run: |
./out/${{ env.BIN }} --version
./out/${{ env.BIN }} --help
./out/${{ env.BIN }} --headless --test --test-case="*[LimboAI]*"
./out/${{ env.BIN }} --headless --test
windows-dot-net:
runs-on: "windows-latest"
@ -172,13 +168,12 @@ jobs:
uses: actions/checkout@v3
with:
repository: godotengine/godot
ref: ${{ inputs.godot-treeish }}
ref: ${{ env.GODOT_TREEISH }}
- name: Clone LimboAI module
uses: actions/checkout@v3
with:
path: modules/limboai
ref: ${{ inputs.limboai-treeish }}
# Inits GODOT_VERSION, LIMBOAI_VERSION and NAME_PREFIX environment variables.
- uses: ./modules/limboai/.github/actions/init-version
@ -203,11 +198,11 @@ jobs:
uses: actions/cache@v3
with:
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: |
${{env.BIN}}-${{env.GODOT_BASE_BRANCH}}-${{github.ref}}-${{github.sha}}
${{env.BIN}}-${{env.GODOT_BASE_BRANCH}}-${{github.ref}}
${{env.BIN}}-${{env.GODOT_BASE_BRANCH}}
${{env.BIN}}-${{env.GODOT_TREEISH}}-${{github.ref}}-${{github.sha}}
${{env.BIN}}-${{env.GODOT_TREEISH}}-${{github.ref}}
${{env.BIN}}-${{env.GODOT_TREEISH}}
- name: Compilation
env: