GH: Add better build versioning scheme
This commit is contained in:
parent
9ad8a84e8d
commit
cc6a0e7b44
|
@ -0,0 +1,15 @@
|
|||
name: Setup version
|
||||
|
||||
runs:
|
||||
using: "composite"
|
||||
steps:
|
||||
- name: Set GODOT_VERSION & LIMBOAI_VERSION
|
||||
shell: bash
|
||||
run: |
|
||||
echo "GODOT_VERSION=$( (git describe --tags --exact-match HEAD || git rev-parse --short HEAD) | sed 's/\(.*\)-\(.*\)/\1/g' )" >> "$GITHUB_ENV"
|
||||
cd modules/limboai
|
||||
echo "LIMBOAI_VERSION=$( (git describe --tags --exact-match HEAD || git rev-parse --short HEAD) | sed 's/\(.*\)-\(.*\)/\1/g' )" >> "$GITHUB_ENV"
|
||||
|
||||
- name: Set NAME_PREFIX
|
||||
shell: bash
|
||||
run: echo "NAME_PREFIX=godot-${GODOT_VERSION}.limboai+${LIMBOAI_VERSION}" >> "$GITHUB_ENV"
|
|
@ -28,7 +28,6 @@ env:
|
|||
SCONSFLAGS: production=yes tests=no verbose=yes warnings=extra werror=yes
|
||||
DOTNET_NOLOGO: true
|
||||
DOTNET_CLI_TELEMETRY_OPTOUT: true
|
||||
NAME_PREFIX: godot.${{inputs.godot-treeish}}.limboai+${{inputs.limboai-treeish}}
|
||||
|
||||
jobs:
|
||||
android-builds:
|
||||
|
@ -135,6 +134,15 @@ jobs:
|
|||
repository: godotengine/godot
|
||||
ref: ${{ inputs.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
|
||||
|
||||
- name: Download Android template builds
|
||||
uses: actions/download-artifact@v3
|
||||
with:
|
||||
|
|
|
@ -29,7 +29,6 @@ env:
|
|||
SCONSFLAGS: production=yes tests=no verbose=yes warnings=extra werror=yes
|
||||
DOTNET_NOLOGO: true
|
||||
DOTNET_CLI_TELEMETRY_OPTOUT: true
|
||||
NAME_PREFIX: godot.${{inputs.godot-treeish}}.limboai+${{inputs.limboai-treeish}}
|
||||
|
||||
jobs:
|
||||
|
||||
|
@ -146,6 +145,15 @@ jobs:
|
|||
repository: godotengine/godot
|
||||
ref: ${{ inputs.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
|
||||
|
||||
- name: Set up Vulkan SDK
|
||||
run: |
|
||||
sh misc/scripts/install_vulkan_sdk_macos.sh
|
||||
|
|
|
@ -28,7 +28,6 @@ env:
|
|||
SCONSFLAGS: production=yes tests=no verbose=yes warnings=extra werror=yes
|
||||
DOTNET_NOLOGO: true
|
||||
DOTNET_CLI_TELEMETRY_OPTOUT: true
|
||||
NAME_PREFIX: godot.${{inputs.godot-treeish}}.limboai+${{inputs.limboai-treeish}}
|
||||
|
||||
jobs:
|
||||
linux-builds:
|
||||
|
@ -102,12 +101,6 @@ jobs:
|
|||
BIN: godot.linuxbsd.${{matrix.target}}.${{matrix.arch}}${{ matrix.build-mono == true && '.mono' || '' }}
|
||||
|
||||
steps:
|
||||
- name: Dump environment
|
||||
env:
|
||||
ENVI: ${{ toJson(env) }}
|
||||
run: |
|
||||
echo "$ENVI"
|
||||
|
||||
- name: Clone Godot
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
|
@ -120,6 +113,9 @@ jobs:
|
|||
path: modules/limboai
|
||||
ref: ${{ inputs.limboai-treeish }}
|
||||
|
||||
# Inits GODOT_VERSION, LIMBOAI_VERSION and NAME_PREFIX environment variables.
|
||||
- uses: ./modules/limboai/.github/actions/init-version
|
||||
|
||||
# About sed see: https://github.com/godotengine/buildroot/issues/6
|
||||
- name: Set up buildroot x86_64
|
||||
if: matrix.arch == 'x86_64'
|
||||
|
|
|
@ -29,7 +29,6 @@ env:
|
|||
SCONSFLAGS: production=yes tests=no verbose=yes warnings=extra werror=yes
|
||||
DOTNET_NOLOGO: true
|
||||
DOTNET_CLI_TELEMETRY_OPTOUT: true
|
||||
NAME_PREFIX: godot.${{inputs.godot-treeish}}.limboai+${{inputs.limboai-treeish}}
|
||||
|
||||
jobs:
|
||||
macos-builds:
|
||||
|
@ -206,6 +205,15 @@ jobs:
|
|||
repository: godotengine/godot
|
||||
ref: ${{ inputs.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
|
||||
|
||||
- name: Download editor artifact
|
||||
uses: actions/download-artifact@v3
|
||||
with:
|
||||
|
|
|
@ -29,7 +29,6 @@ env:
|
|||
SCONSFLAGS: use_static_cpp=yes debug_symbols=no lto=thin optimize=size verbose=yes warnings=extra werror=yes tests=no
|
||||
EM_VERSION: 3.1.18
|
||||
EM_CACHE_FOLDER: "emsdk-cache"
|
||||
NAME_PREFIX: godot.${{inputs.godot-treeish}}.limboai+${{inputs.limboai-treeish}}
|
||||
|
||||
jobs:
|
||||
web-builds:
|
||||
|
@ -71,6 +70,9 @@ jobs:
|
|||
path: modules/limboai
|
||||
ref: ${{ inputs.limboai-treeish }}
|
||||
|
||||
# Inits GODOT_VERSION, LIMBOAI_VERSION and NAME_PREFIX environment variables.
|
||||
- uses: ./modules/limboai/.github/actions/init-version
|
||||
|
||||
- name: Set up Emscripten latest
|
||||
uses: mymindstorm/setup-emsdk@v12
|
||||
with:
|
||||
|
|
|
@ -29,7 +29,6 @@ env:
|
|||
SCONSFLAGS: production=yes tests=no verbose=yes warnings=extra werror=yes
|
||||
DOTNET_NOLOGO: true
|
||||
DOTNET_CLI_TELEMETRY_OPTOUT: true
|
||||
NAME_PREFIX: godot.${{inputs.godot-treeish}}.limboai+${{inputs.limboai-treeish}}
|
||||
|
||||
jobs:
|
||||
windows-builds:
|
||||
|
@ -115,6 +114,9 @@ jobs:
|
|||
path: modules/limboai
|
||||
ref: ${{ inputs.limboai-treeish }}
|
||||
|
||||
# Inits GODOT_VERSION, LIMBOAI_VERSION and NAME_PREFIX environment variables.
|
||||
- uses: ./modules/limboai/.github/actions/init-version
|
||||
|
||||
- name: Set up Python 3.x
|
||||
uses: actions/setup-python@v4
|
||||
with:
|
||||
|
|
Loading…
Reference in New Issue