Merge branch 'expand-test-builds'
This commit is contained in:
commit
c18fc2abf6
|
@ -61,6 +61,7 @@ jobs:
|
||||||
with:
|
with:
|
||||||
godot-treeish: ${{ needs.cache-sha.outputs.godot-sha }}
|
godot-treeish: ${{ needs.cache-sha.outputs.godot-sha }}
|
||||||
limboai-treeish: ${{ needs.cache-sha.outputs.limboai-sha }}
|
limboai-treeish: ${{ needs.cache-sha.outputs.limboai-sha }}
|
||||||
|
test-build: false
|
||||||
|
|
||||||
macos-build:
|
macos-build:
|
||||||
name: 🍎 macOS
|
name: 🍎 macOS
|
||||||
|
@ -77,6 +78,7 @@ jobs:
|
||||||
with:
|
with:
|
||||||
godot-treeish: ${{ needs.cache-sha.outputs.godot-sha }}
|
godot-treeish: ${{ needs.cache-sha.outputs.godot-sha }}
|
||||||
limboai-treeish: ${{ needs.cache-sha.outputs.limboai-sha }}
|
limboai-treeish: ${{ needs.cache-sha.outputs.limboai-sha }}
|
||||||
|
test-build: false
|
||||||
|
|
||||||
web-build:
|
web-build:
|
||||||
name: 🌐 Web
|
name: 🌐 Web
|
||||||
|
|
|
@ -10,6 +10,10 @@ on:
|
||||||
description: A tag, branch or commit hash in the LimboAI repository.
|
description: A tag, branch or commit hash in the LimboAI repository.
|
||||||
type: string
|
type: string
|
||||||
default: master
|
default: master
|
||||||
|
test-build:
|
||||||
|
description: Should we perform only a limited number of test builds?
|
||||||
|
type: boolean
|
||||||
|
default: false
|
||||||
|
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
inputs:
|
||||||
|
@ -21,6 +25,10 @@ on:
|
||||||
description: A tag, branch or commit hash in the LimboAI repository.
|
description: A tag, branch or commit hash in the LimboAI repository.
|
||||||
type: string
|
type: string
|
||||||
default: master
|
default: master
|
||||||
|
test-build:
|
||||||
|
description: Should we perform only a limited number of test builds?
|
||||||
|
type: boolean
|
||||||
|
default: false
|
||||||
|
|
||||||
# Global Settings
|
# Global Settings
|
||||||
env:
|
env:
|
||||||
|
@ -32,73 +40,88 @@ env:
|
||||||
jobs:
|
jobs:
|
||||||
linux-builds:
|
linux-builds:
|
||||||
runs-on: "ubuntu-20.04"
|
runs-on: "ubuntu-20.04"
|
||||||
name: ${{ matrix.name }}
|
name: ${{ matrix.opts.name }}
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
opts:
|
||||||
- name: Editor (x86_64, release)
|
- name: Editor (x86_64, release)
|
||||||
target: editor
|
target: editor
|
||||||
arch: x86_64
|
arch: x86_64
|
||||||
build-mono: false
|
build-mono: false
|
||||||
|
should-build: true
|
||||||
|
|
||||||
- name: Template (x86_64, release)
|
- name: Template (x86_64, release)
|
||||||
target: template_release
|
target: template_release
|
||||||
arch: x86_64
|
arch: x86_64
|
||||||
build-mono: false
|
build-mono: false
|
||||||
|
should-build: true
|
||||||
|
|
||||||
- name: Template (x86_64, debug)
|
- name: Template (x86_64, debug)
|
||||||
target: template_debug
|
target: template_debug
|
||||||
arch: x86_64
|
arch: x86_64
|
||||||
build-mono: false
|
build-mono: false
|
||||||
|
should-build: ${{ !inputs.test-build }}
|
||||||
|
|
||||||
# - name: Editor (x86_32, release)
|
# - name: Editor (x86_32, release)
|
||||||
# target: editor
|
# target: editor
|
||||||
# arch: x86_32
|
# arch: x86_32
|
||||||
# build-mono: false
|
# build-mono: false
|
||||||
|
# should-build: ${{ !inputs.test-build }}
|
||||||
|
|
||||||
- name: Template (x86_32, release)
|
- name: Template (x86_32, release)
|
||||||
target: template_release
|
target: template_release
|
||||||
arch: x86_32
|
arch: x86_32
|
||||||
build-mono: false
|
build-mono: false
|
||||||
|
should-build: ${{ !inputs.test-build }}
|
||||||
|
|
||||||
- name: Template (x86_32, debug)
|
- name: Template (x86_32, debug)
|
||||||
target: template_debug
|
target: template_debug
|
||||||
arch: x86_32
|
arch: x86_32
|
||||||
build-mono: false
|
build-mono: false
|
||||||
|
should-build: ${{ !inputs.test-build }}
|
||||||
|
|
||||||
- name: Editor .NET (x86_64, release)
|
- name: Editor .NET (x86_64, release)
|
||||||
target: editor
|
target: editor
|
||||||
arch: x86_64
|
arch: x86_64
|
||||||
build-mono: true
|
build-mono: true
|
||||||
|
should-build: ${{ !inputs.test-build }}
|
||||||
|
|
||||||
- name: Template .NET (x86_64, release)
|
- name: Template .NET (x86_64, release)
|
||||||
target: template_release
|
target: template_release
|
||||||
arch: x86_64
|
arch: x86_64
|
||||||
build-mono: true
|
build-mono: true
|
||||||
|
should-build: ${{ !inputs.test-build }}
|
||||||
|
|
||||||
- name: Template .NET (x86_64, debug)
|
- name: Template .NET (x86_64, debug)
|
||||||
target: template_debug
|
target: template_debug
|
||||||
arch: x86_64
|
arch: x86_64
|
||||||
build-mono: true
|
build-mono: true
|
||||||
|
should-build: ${{ !inputs.test-build }}
|
||||||
|
|
||||||
# - name: Editor .NET (x86_32, release)
|
# - name: Editor .NET (x86_32, release)
|
||||||
# target: editor
|
# target: editor
|
||||||
# arch: x86_32
|
# arch: x86_32
|
||||||
# build-mono: true
|
# build-mono: true
|
||||||
|
# should-build: ${{ !inputs.test-build }}
|
||||||
|
|
||||||
- name: Template .NET (x86_32, release)
|
- name: Template .NET (x86_32, release)
|
||||||
target: template_release
|
target: template_release
|
||||||
arch: x86_32
|
arch: x86_32
|
||||||
build-mono: true
|
build-mono: true
|
||||||
|
should-build: ${{ !inputs.test-build }}
|
||||||
|
|
||||||
- name: Template .NET (x86_32, debug)
|
- name: Template .NET (x86_32, debug)
|
||||||
target: template_debug
|
target: template_debug
|
||||||
arch: x86_32
|
arch: x86_32
|
||||||
build-mono: true
|
build-mono: true
|
||||||
|
should-build: ${{ !inputs.test-build }}
|
||||||
|
|
||||||
|
exclude:
|
||||||
|
- { opts: {should-build: false }}
|
||||||
|
|
||||||
env:
|
env:
|
||||||
BIN: godot.linuxbsd.${{matrix.target}}.${{matrix.arch}}${{ matrix.build-mono == true && '.mono' || '' }}
|
BIN: godot.linuxbsd.${{matrix.opts.target}}.${{matrix.opts.arch}}${{ matrix.opts.build-mono == true && '.mono' || '' }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Clone Godot
|
- name: Clone Godot
|
||||||
|
@ -118,7 +141,7 @@ jobs:
|
||||||
|
|
||||||
# About sed see: https://github.com/godotengine/buildroot/issues/6
|
# About sed see: https://github.com/godotengine/buildroot/issues/6
|
||||||
- name: Set up buildroot x86_64
|
- name: Set up buildroot x86_64
|
||||||
if: matrix.arch == 'x86_64'
|
if: matrix.opts.arch == 'x86_64'
|
||||||
run: |
|
run: |
|
||||||
wget https://download.tuxfamily.org/godotengine/toolchains/linux/x86_64-godot-linux-gnu_sdk-buildroot.tar.bz2
|
wget https://download.tuxfamily.org/godotengine/toolchains/linux/x86_64-godot-linux-gnu_sdk-buildroot.tar.bz2
|
||||||
tar -xjf x86_64-godot-linux-gnu_sdk-buildroot.tar.bz2
|
tar -xjf x86_64-godot-linux-gnu_sdk-buildroot.tar.bz2
|
||||||
|
@ -129,7 +152,7 @@ jobs:
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
- name: Set up buildroot x86_32
|
- name: Set up buildroot x86_32
|
||||||
if: matrix.arch == 'x86_32'
|
if: matrix.opts.arch == 'x86_32'
|
||||||
run: |
|
run: |
|
||||||
wget https://download.tuxfamily.org/godotengine/toolchains/linux/i686-godot-linux-gnu_sdk-buildroot.tar.bz2
|
wget https://download.tuxfamily.org/godotengine/toolchains/linux/i686-godot-linux-gnu_sdk-buildroot.tar.bz2
|
||||||
tar -xjf i686-godot-linux-gnu_sdk-buildroot.tar.bz2
|
tar -xjf i686-godot-linux-gnu_sdk-buildroot.tar.bz2
|
||||||
|
@ -153,17 +176,17 @@ jobs:
|
||||||
SCONS_CACHE: ${{github.workspace}}/.scons_cache/
|
SCONS_CACHE: ${{github.workspace}}/.scons_cache/
|
||||||
run: |
|
run: |
|
||||||
PATH=${GITHUB_WORKSPACE}/buildroot/bin:$PATH
|
PATH=${GITHUB_WORKSPACE}/buildroot/bin:$PATH
|
||||||
scons platform=linuxbsd target=${{matrix.target}} arch=${{matrix.arch}} module_mono_enabled=${{matrix.build-mono}} ${{env.SCONSFLAGS}}
|
scons platform=linuxbsd target=${{matrix.opts.target}} arch=${{matrix.opts.arch}} module_mono_enabled=${{matrix.opts.build-mono}} ${{env.SCONSFLAGS}}
|
||||||
|
|
||||||
- name: Generate C# glue
|
- name: Generate C# glue
|
||||||
if: matrix.build-mono && matrix.target == 'editor'
|
if: matrix.opts.build-mono && matrix.opts.target == 'editor'
|
||||||
env:
|
env:
|
||||||
GODOT_VERSION_STATUS: limboai
|
GODOT_VERSION_STATUS: limboai
|
||||||
run: |
|
run: |
|
||||||
./bin/$BIN --headless --generate-mono-glue ./modules/mono/glue || true
|
./bin/$BIN --headless --generate-mono-glue ./modules/mono/glue || true
|
||||||
|
|
||||||
- name: Build .NET solutions
|
- name: Build .NET solutions
|
||||||
if: matrix.build-mono && matrix.target == 'editor'
|
if: matrix.opts.build-mono && matrix.opts.target == 'editor'
|
||||||
env:
|
env:
|
||||||
GODOT_VERSION_STATUS: limboai
|
GODOT_VERSION_STATUS: limboai
|
||||||
run: |
|
run: |
|
||||||
|
@ -171,7 +194,7 @@ jobs:
|
||||||
|
|
||||||
- name: Prepare artifact
|
- name: Prepare artifact
|
||||||
env:
|
env:
|
||||||
OUTDIR: ${{ startsWith(matrix.target, 'template') && 'out/templates' || 'out/' }}
|
OUTDIR: ${{ startsWith(matrix.opts.target, 'template') && 'out/templates' || 'out/' }}
|
||||||
run: |
|
run: |
|
||||||
strip ./bin/godot.*
|
strip ./bin/godot.*
|
||||||
chmod +x ./bin/godot.*
|
chmod +x ./bin/godot.*
|
||||||
|
@ -182,7 +205,7 @@ jobs:
|
||||||
# Zipping the editor artifact to retain executable bit;
|
# Zipping the editor artifact to retain executable bit;
|
||||||
# workaround for: https://github.com/actions/upload-artifact/issues/38
|
# workaround for: https://github.com/actions/upload-artifact/issues/38
|
||||||
- name: Zip the editor artifact
|
- name: Zip the editor artifact
|
||||||
if: matrix.target == 'editor'
|
if: matrix.opts.target == 'editor'
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
pushd out/
|
pushd out/
|
||||||
|
@ -192,19 +215,19 @@ jobs:
|
||||||
popd
|
popd
|
||||||
|
|
||||||
- name: Rename templates
|
- name: Rename templates
|
||||||
if: startsWith(matrix.target, 'template')
|
if: startsWith(matrix.opts.target, 'template')
|
||||||
env:
|
env:
|
||||||
BUILD_TYPE: ${{ endsWith(matrix.target, 'release') && 'release' || 'debug' }}
|
BUILD_TYPE: ${{ endsWith(matrix.opts.target, 'release') && 'release' || 'debug' }}
|
||||||
run: |
|
run: |
|
||||||
mv out/templates/${BIN} out/templates/linux_${BUILD_TYPE}.${{matrix.arch}}
|
mv out/templates/${BIN} out/templates/linux_${BUILD_TYPE}.${{matrix.opts.arch}}
|
||||||
echo "${GODOT_VERSION}.limboai+${LIMBOAI_VERSION}" > out/templates/version.txt
|
echo "${GODOT_VERSION}.limboai+${LIMBOAI_VERSION}" > out/templates/version.txt
|
||||||
ls -R out/
|
ls -R out/
|
||||||
|
|
||||||
- name: Upload artifact
|
- name: Upload artifact
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
env:
|
env:
|
||||||
NAME_EDITOR: ${{env.NAME_PREFIX}}.${{matrix.target}}.linux.${{matrix.arch}}${{ matrix.build-mono == true && '.mono' || '' }}
|
NAME_EDITOR: ${{env.NAME_PREFIX}}.${{matrix.opts.target}}.linux.${{matrix.opts.arch}}${{ matrix.opts.build-mono == true && '.mono' || '' }}
|
||||||
NAME_TEMPLATES: ${{env.NAME_PREFIX}}.export-templates${{ matrix.build-mono == true && '.mono' || '' }}
|
NAME_TEMPLATES: ${{env.NAME_PREFIX}}.export-templates${{ matrix.opts.build-mono == true && '.mono' || '' }}
|
||||||
with:
|
with:
|
||||||
name: ${{ startsWith(matrix.target, 'template') && env.NAME_TEMPLATES || env.NAME_EDITOR }}
|
name: ${{ startsWith(matrix.opts.target, 'template') && env.NAME_TEMPLATES || env.NAME_EDITOR }}
|
||||||
path: out/*
|
path: out/*
|
||||||
|
|
|
@ -10,6 +10,10 @@ on:
|
||||||
description: A tag, branch or commit hash in the LimboAI repository.
|
description: A tag, branch or commit hash in the LimboAI repository.
|
||||||
type: string
|
type: string
|
||||||
default: master
|
default: master
|
||||||
|
test-build:
|
||||||
|
description: Should we perform only a limited number of test builds?
|
||||||
|
type: boolean
|
||||||
|
default: false
|
||||||
|
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
inputs:
|
||||||
|
@ -21,6 +25,10 @@ on:
|
||||||
description: A tag, branch or commit hash in the LimboAI repository.
|
description: A tag, branch or commit hash in the LimboAI repository.
|
||||||
type: string
|
type: string
|
||||||
default: master
|
default: master
|
||||||
|
test-build:
|
||||||
|
description: Should we perform only a limited number of test builds?
|
||||||
|
type: boolean
|
||||||
|
default: false
|
||||||
|
|
||||||
|
|
||||||
# Global Settings
|
# Global Settings
|
||||||
|
@ -33,49 +41,55 @@ env:
|
||||||
jobs:
|
jobs:
|
||||||
macos-builds:
|
macos-builds:
|
||||||
runs-on: "macos-latest"
|
runs-on: "macos-latest"
|
||||||
name: ${{ matrix.name }}
|
name: ${{ matrix.opts.name }}
|
||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
opts:
|
||||||
- name: Editor (x86_64, release)
|
- name: Editor (x86_64, release)
|
||||||
target: editor
|
target: editor
|
||||||
arch: x86_64
|
arch: x86_64
|
||||||
build-mono: false
|
build-mono: false
|
||||||
artifact-name: macos-editor
|
artifact-name: macos-editor
|
||||||
|
should-build: true
|
||||||
|
|
||||||
- name: Template (x86_64, release)
|
- name: Template (x86_64, release)
|
||||||
target: template_release
|
target: template_release
|
||||||
arch: x86_64
|
arch: x86_64
|
||||||
build-mono: false
|
build-mono: false
|
||||||
artifact-name: macos-templates
|
artifact-name: macos-templates
|
||||||
|
should-build: ${{ !inputs.test-build }}
|
||||||
|
|
||||||
- name: Template (x86_64, debug)
|
- name: Template (x86_64, debug)
|
||||||
target: template_debug
|
target: template_debug
|
||||||
arch: x86_64
|
arch: x86_64
|
||||||
build-mono: false
|
build-mono: false
|
||||||
artifact-name: macos-templates
|
artifact-name: macos-templates
|
||||||
|
should-build: ${{ !inputs.test-build }}
|
||||||
|
|
||||||
- name: Editor (arm64, release)
|
- name: Editor (arm64, release)
|
||||||
target: editor
|
target: editor
|
||||||
arch: arm64
|
arch: arm64
|
||||||
build-mono: false
|
build-mono: false
|
||||||
artifact-name: macos-editor
|
artifact-name: macos-editor
|
||||||
|
should-build: true
|
||||||
|
|
||||||
- name: Template (arm64, release)
|
- name: Template (arm64, release)
|
||||||
target: template_release
|
target: template_release
|
||||||
arch: arm64
|
arch: arm64
|
||||||
build-mono: false
|
build-mono: false
|
||||||
artifact-name: macos-templates
|
artifact-name: macos-templates
|
||||||
|
should-build: ${{ !inputs.test-build }}
|
||||||
|
|
||||||
- name: Template (arm64, debug)
|
- name: Template (arm64, debug)
|
||||||
target: template_debug
|
target: template_debug
|
||||||
arch: arm64
|
arch: arm64
|
||||||
build-mono: false
|
build-mono: false
|
||||||
artifact-name: macos-templates
|
artifact-name: macos-templates
|
||||||
|
should-build: ${{ !inputs.test-build }}
|
||||||
|
|
||||||
# ! Disabled for now: .NET version fail to build
|
# ! Disabled for now: .NET version fails to build
|
||||||
|
|
||||||
# - name: .NET Editor (x86_64, release)
|
# - name: .NET Editor (x86_64, release)
|
||||||
# target: editor
|
# target: editor
|
||||||
|
@ -83,18 +97,21 @@ jobs:
|
||||||
# build-mono: true
|
# build-mono: true
|
||||||
# artifact-name: macos-mono-editor
|
# artifact-name: macos-mono-editor
|
||||||
# cache-name: macos-editor
|
# cache-name: macos-editor
|
||||||
|
# should-build: ${{ !inputs.test-build }}
|
||||||
|
|
||||||
# - name: .NET Template (x86_64, release)
|
# - name: .NET Template (x86_64, release)
|
||||||
# target: template_release
|
# target: template_release
|
||||||
# arch: x86_64
|
# arch: x86_64
|
||||||
# build-mono: true
|
# build-mono: true
|
||||||
# artifact-name: macos-mono-templates
|
# artifact-name: macos-mono-templates
|
||||||
|
# should-build: ${{ !inputs.test-build }}
|
||||||
|
|
||||||
# - name: .NET Template (x86_64, debug)
|
# - name: .NET Template (x86_64, debug)
|
||||||
# target: template_debug
|
# target: template_debug
|
||||||
# arch: x86_64
|
# arch: x86_64
|
||||||
# build-mono: true
|
# build-mono: true
|
||||||
# artifact-name: macos-mono-templates
|
# artifact-name: macos-mono-templates
|
||||||
|
# should-build: ${{ !inputs.test-build }}
|
||||||
|
|
||||||
# - name: .NET Editor (arm64, release)
|
# - name: .NET Editor (arm64, release)
|
||||||
# target: editor
|
# target: editor
|
||||||
|
@ -102,21 +119,27 @@ jobs:
|
||||||
# build-mono: true
|
# build-mono: true
|
||||||
# artifact-name: macos-mono-editor
|
# artifact-name: macos-mono-editor
|
||||||
# cache-name: macos-editor
|
# cache-name: macos-editor
|
||||||
|
# should-build: ${{ !inputs.test-build }}
|
||||||
|
|
||||||
# - name: .NET Template (arm64, release)
|
# - name: .NET Template (arm64, release)
|
||||||
# target: template_release
|
# target: template_release
|
||||||
# arch: arm64
|
# arch: arm64
|
||||||
# build-mono: true
|
# build-mono: true
|
||||||
# artifact-name: macos-mono-templates
|
# artifact-name: macos-mono-templates
|
||||||
|
# should-build: ${{ !inputs.test-build }}
|
||||||
|
|
||||||
# - name: .NET Template (arm64, debug)
|
# - name: .NET Template (arm64, debug)
|
||||||
# target: template_debug
|
# target: template_debug
|
||||||
# arch: arm64
|
# arch: arm64
|
||||||
# build-mono: true
|
# build-mono: true
|
||||||
# artifact-name: macos-mono-templates
|
# artifact-name: macos-mono-templates
|
||||||
|
# should-build: ${{ !inputs.test-build }}
|
||||||
|
|
||||||
|
exclude:
|
||||||
|
- { opts: {should-build: false }}
|
||||||
|
|
||||||
env:
|
env:
|
||||||
BIN: godot.macos.${{matrix.target}}.${{matrix.arch}}${{ matrix.build-mono == true && '.mono' || '' }}
|
BIN: godot.macos.${{matrix.opts.target}}.${{matrix.opts.arch}}${{ matrix.opts.build-mono == true && '.mono' || '' }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
|
@ -170,17 +193,17 @@ jobs:
|
||||||
env:
|
env:
|
||||||
SCONS_CACHE: ${{github.workspace}}/.scons_cache/
|
SCONS_CACHE: ${{github.workspace}}/.scons_cache/
|
||||||
run: |
|
run: |
|
||||||
scons -j2 platform=macos target=${{matrix.target}} arch=${{matrix.arch}} module_mono_enabled=${{matrix.build-mono}} ${{env.SCONSFLAGS}}
|
scons -j2 platform=macos target=${{matrix.opts.target}} arch=${{matrix.opts.arch}} module_mono_enabled=${{matrix.opts.build-mono}} ${{env.SCONSFLAGS}}
|
||||||
|
|
||||||
# ! Disabled for now: .NET version fail to build
|
# ! Disabled for now: .NET version fail to build
|
||||||
|
|
||||||
# - name: Generate C# glue
|
# - name: Generate C# glue
|
||||||
# if: matrix.build-mono && matrix.target == 'editor'
|
# if: matrix.opts.build-mono && matrix.opts.target == 'editor'
|
||||||
# run: |
|
# run: |
|
||||||
# ./bin/$BIN --headless --generate-mono-glue ./modules/mono/glue || true
|
# ./bin/$BIN --headless --generate-mono-glue ./modules/mono/glue || true
|
||||||
|
|
||||||
# - name: Build .NET solutions
|
# - name: Build .NET solutions
|
||||||
# if: matrix.build-mono && matrix.target == 'editor'
|
# if: matrix.opts.build-mono && matrix.opts.target == 'editor'
|
||||||
# run: |
|
# run: |
|
||||||
# ./modules/mono/build_scripts/build_assemblies.py --godot-output-dir=./bin --godot-platform=macos
|
# ./modules/mono/build_scripts/build_assemblies.py --godot-output-dir=./bin --godot-platform=macos
|
||||||
|
|
||||||
|
@ -192,7 +215,7 @@ jobs:
|
||||||
- name: Upload artifact
|
- name: Upload artifact
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: ${{ matrix.artifact-name }}
|
name: ${{ matrix.opts.artifact-name }}
|
||||||
path: bin/*
|
path: bin/*
|
||||||
|
|
||||||
make-macos-bundle:
|
make-macos-bundle:
|
||||||
|
@ -250,12 +273,14 @@ jobs:
|
||||||
path: out/editor/*
|
path: out/editor/*
|
||||||
|
|
||||||
- name: Download templates artifact
|
- name: Download templates artifact
|
||||||
|
if: ${{ !inputs.test-build }}
|
||||||
uses: actions/download-artifact@v3
|
uses: actions/download-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: macos-templates
|
name: macos-templates
|
||||||
path: bin/
|
path: bin/
|
||||||
|
|
||||||
- name: Make templates bundle
|
- name: Make templates bundle
|
||||||
|
if: ${{ !inputs.test-build }}
|
||||||
run: |
|
run: |
|
||||||
rm -rf out/
|
rm -rf out/
|
||||||
ls bin/
|
ls bin/
|
||||||
|
@ -282,6 +307,7 @@ jobs:
|
||||||
failOnError: false
|
failOnError: false
|
||||||
|
|
||||||
- name: Upload templates bundle
|
- name: Upload templates bundle
|
||||||
|
if: ${{ !inputs.test-build }}
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: ${{env.NAME_PREFIX}}.export-templates
|
name: ${{env.NAME_PREFIX}}.export-templates
|
||||||
|
|
|
@ -10,6 +10,11 @@ on:
|
||||||
- "**/*.png"
|
- "**/*.png"
|
||||||
- "demo/*"
|
- "demo/*"
|
||||||
- "doc/*"
|
- "doc/*"
|
||||||
|
inputs:
|
||||||
|
godot-treeish:
|
||||||
|
description: A tag, branch or commit hash in the Godot repository.
|
||||||
|
type: string
|
||||||
|
default: 4.2.1-stable
|
||||||
|
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ master ]
|
branches: [ master ]
|
||||||
|
@ -18,80 +23,37 @@ on:
|
||||||
- "LICENSE"
|
- "LICENSE"
|
||||||
- "**/*.png"
|
- "**/*.png"
|
||||||
- "demo/*"
|
- "demo/*"
|
||||||
|
inputs:
|
||||||
# Global settings
|
godot-treeish:
|
||||||
env:
|
description: A tag, branch or commit hash in the Godot repository.
|
||||||
GODOT_TREEISH: 4.2-stable
|
type: string
|
||||||
SCONSFLAGS: verbose=yes warnings=extra werror=yes
|
default: 4.2.1-stable
|
||||||
SCONS_CACHE_LIMIT: 7168
|
|
||||||
DOTNET_NOLOGO: true
|
|
||||||
DOTNET_CLI_TELEMETRY_OPTOUT: true
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
linux-test-builds:
|
unit-tests:
|
||||||
|
name: 🧪 Unit tests
|
||||||
runs-on: "ubuntu-20.04"
|
runs-on: "ubuntu-20.04"
|
||||||
name: ${{ matrix.name }}
|
|
||||||
strategy:
|
|
||||||
fail-fast: false
|
|
||||||
matrix:
|
|
||||||
include:
|
|
||||||
- name: 🐧 Unit tests
|
|
||||||
target: editor
|
|
||||||
arch: x86_64
|
|
||||||
production: false
|
|
||||||
dev_build: true
|
|
||||||
tests: true
|
|
||||||
build-mono: false
|
|
||||||
artifact: false
|
|
||||||
|
|
||||||
- name: 🐧 Editor (x86_64, release)
|
|
||||||
target: editor
|
|
||||||
arch: x86_64
|
|
||||||
production: true
|
|
||||||
dev_build: false
|
|
||||||
tests: false
|
|
||||||
build-mono: false
|
|
||||||
artifact: true
|
|
||||||
|
|
||||||
- name: 🐧 Template (x86_64, release)
|
|
||||||
target: template_release
|
|
||||||
arch: x86_64
|
|
||||||
production: true
|
|
||||||
dev_build: false
|
|
||||||
tests: false
|
|
||||||
build-mono: false
|
|
||||||
artifact: true
|
|
||||||
|
|
||||||
- name: 🐧 Template (x86_64, debug)
|
|
||||||
target: template_debug
|
|
||||||
arch: x86_64
|
|
||||||
production: true
|
|
||||||
dev_build: false
|
|
||||||
tests: false
|
|
||||||
build-mono: false
|
|
||||||
artifact: true
|
|
||||||
|
|
||||||
|
# Settings
|
||||||
env:
|
env:
|
||||||
BIN: godot.linuxbsd.${{matrix.target}}${{matrix.dev_build == true && '.dev' || ''}}.${{matrix.arch}}${{matrix.build-mono == true && '.mono' || ''}}
|
SCONSFLAGS: platform=linuxbsd target=editor arch=x86_64 production=false dev_build=true tests=true verbose=yes warnings=extra werror=yes
|
||||||
|
SCONS_CACHE_LIMIT: 7168
|
||||||
|
BIN: godot.linuxbsd.editor.dev.x86_64
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Clone Godot
|
- name: Clone Godot
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
repository: godotengine/godot
|
repository: godotengine/godot
|
||||||
ref: ${{ env.GODOT_TREEISH }}
|
ref: ${{ inputs.godot-treeish }}
|
||||||
|
|
||||||
- name: Clone LimboAI module
|
- name: Clone LimboAI module
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
path: modules/limboai
|
path: modules/limboai
|
||||||
|
|
||||||
# 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
|
# About sed see: https://github.com/godotengine/buildroot/issues/6
|
||||||
- name: Set up buildroot x86_64
|
- name: Set up buildroot x86_64
|
||||||
if: matrix.arch == 'x86_64'
|
|
||||||
run: |
|
run: |
|
||||||
wget https://download.tuxfamily.org/godotengine/toolchains/linux/x86_64-godot-linux-gnu_sdk-buildroot.tar.bz2
|
wget https://download.tuxfamily.org/godotengine/toolchains/linux/x86_64-godot-linux-gnu_sdk-buildroot.tar.bz2
|
||||||
tar -xjf x86_64-godot-linux-gnu_sdk-buildroot.tar.bz2
|
tar -xjf x86_64-godot-linux-gnu_sdk-buildroot.tar.bz2
|
||||||
|
@ -101,25 +63,15 @@ jobs:
|
||||||
./relocate-sdk.sh
|
./relocate-sdk.sh
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
- name: Set up buildroot x86_32
|
|
||||||
if: matrix.arch == 'x86_32'
|
|
||||||
run: |
|
|
||||||
wget https://download.tuxfamily.org/godotengine/toolchains/linux/i686-godot-linux-gnu_sdk-buildroot.tar.bz2
|
|
||||||
tar -xjf i686-godot-linux-gnu_sdk-buildroot.tar.bz2
|
|
||||||
mv i686-godot-linux-gnu_sdk-buildroot buildroot
|
|
||||||
cd buildroot
|
|
||||||
./relocate-sdk.sh
|
|
||||||
cd ..
|
|
||||||
|
|
||||||
- name: Set up scons cache
|
- name: Set up scons cache
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
path: ${{github.workspace}}/.scons_cache/
|
path: ${{github.workspace}}/.scons_cache/
|
||||||
key: ${{env.BIN}}-${{env.GODOT_TREEISH}}-${{github.ref}}-${{github.sha}}
|
key: ${{env.BIN}}-${{inputs.godot-treeish}}-${{github.ref}}-${{github.sha}}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{env.BIN}}-${{env.GODOT_TREEISH}}-${{github.ref}}-${{github.sha}}
|
${{env.BIN}}-${{inputs.godot-treeish}}-${{github.ref}}-${{github.sha}}
|
||||||
${{env.BIN}}-${{env.GODOT_TREEISH}}-${{github.ref}}
|
${{env.BIN}}-${{inputs.godot-treeish}}-${{github.ref}}
|
||||||
${{env.BIN}}-${{env.GODOT_TREEISH}}
|
${{env.BIN}}-${{inputs.godot-treeish}}
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
|
|
||||||
- name: Set up Python 3.x
|
- name: Set up Python 3.x
|
||||||
|
@ -135,12 +87,6 @@ jobs:
|
||||||
python --version
|
python --version
|
||||||
scons --version
|
scons --version
|
||||||
|
|
||||||
- name: Set up .NET SDK
|
|
||||||
if: matrix.build-mono
|
|
||||||
uses: actions/setup-dotnet@v2
|
|
||||||
with:
|
|
||||||
dotnet-version: '6.0.x'
|
|
||||||
|
|
||||||
- name: Setup GCC problem matcher
|
- name: Setup GCC problem matcher
|
||||||
uses: ammaraskar/gcc-problem-matcher@master
|
uses: ammaraskar/gcc-problem-matcher@master
|
||||||
|
|
||||||
|
@ -149,46 +95,38 @@ jobs:
|
||||||
SCONS_CACHE: ${{github.workspace}}/.scons_cache/
|
SCONS_CACHE: ${{github.workspace}}/.scons_cache/
|
||||||
run: |
|
run: |
|
||||||
PATH=${GITHUB_WORKSPACE}/buildroot/bin:$PATH
|
PATH=${GITHUB_WORKSPACE}/buildroot/bin:$PATH
|
||||||
scons platform=linuxbsd target=${{matrix.target}} arch=${{matrix.arch}} production=${{matrix.production}} dev_build=${{matrix.dev_build}} tests=${{matrix.tests}} module_mono_enabled=${{matrix.build-mono}} ${{env.SCONSFLAGS}}
|
scons ${{env.SCONSFLAGS}}
|
||||||
|
|
||||||
|
- name: Verify build
|
||||||
|
run: |
|
||||||
ls -l bin/
|
ls -l bin/
|
||||||
|
|
||||||
- name: Generate C# glue
|
|
||||||
if: matrix.build-mono
|
|
||||||
run: |
|
|
||||||
bin/${{ env.BIN }} --headless --generate-mono-glue ./modules/mono/glue || true
|
|
||||||
|
|
||||||
- name: Build .NET solutions
|
|
||||||
if: matrix.build-mono
|
|
||||||
run: |
|
|
||||||
./modules/mono/build_scripts/build_assemblies.py --godot-output-dir=./bin --godot-platform=linuxbsd
|
|
||||||
|
|
||||||
# Execute unit tests for the editor
|
|
||||||
- name: Unit tests
|
|
||||||
if: matrix.tests
|
|
||||||
run: |
|
|
||||||
bin/${{ env.BIN }} --version
|
bin/${{ env.BIN }} --version
|
||||||
bin/${{ env.BIN }} --help
|
bin/${{ env.BIN }} --help
|
||||||
|
|
||||||
|
- name: Unit tests
|
||||||
|
run: |
|
||||||
bin/${{ env.BIN }} --test --headless
|
bin/${{ env.BIN }} --test --headless
|
||||||
|
|
||||||
- name: Strip binaries
|
linux-test-build:
|
||||||
if: matrix.dev_build == false
|
name: 🐧 Linux test build
|
||||||
run: strip ./bin/godot.*
|
uses: ./.github/workflows/linux.yml
|
||||||
|
|
||||||
- name: Prepare artifact
|
|
||||||
if: matrix.artifact
|
|
||||||
env:
|
|
||||||
OUTDIR: ${{ startsWith(matrix.target, 'template') && 'out/templates' || 'out/' }}
|
|
||||||
run: |
|
|
||||||
chmod +x ./bin/godot.*
|
|
||||||
mkdir -p ${{env.OUTDIR}}
|
|
||||||
mv ./bin/godot.* ${{env.OUTDIR}}
|
|
||||||
|
|
||||||
- name: Upload artifact
|
|
||||||
if: matrix.artifact
|
|
||||||
uses: actions/upload-artifact@v3
|
|
||||||
env:
|
|
||||||
NAME_EDITOR: ${{env.NAME_PREFIX}}.${{matrix.target}}${{matrix.dev_build == true && '.dev' || ''}}.linux.${{matrix.arch}}${{matrix.build-mono == true && '.mono' || ''}}
|
|
||||||
NAME_TEMPLATES: ${{env.NAME_PREFIX}}.export-templates${{matrix.build-mono == true && '.mono' || ''}}
|
|
||||||
with:
|
with:
|
||||||
name: ${{ startsWith(matrix.target, 'template') && env.NAME_TEMPLATES || env.NAME_EDITOR }}
|
godot-treeish: ${{ inputs.godot-treeish }}
|
||||||
path: out/*
|
limboai-treeish: ${{ github.sha }}
|
||||||
|
test-build: true
|
||||||
|
|
||||||
|
windows-test-build:
|
||||||
|
name: 🪟 Windows test build
|
||||||
|
uses: ./.github/workflows/windows.yml
|
||||||
|
with:
|
||||||
|
godot-treeish: ${{ inputs.godot-treeish }}
|
||||||
|
limboai-treeish: ${{ github.sha }}
|
||||||
|
test-build: true
|
||||||
|
|
||||||
|
macos-test-build:
|
||||||
|
name: 🍎 macOS test build
|
||||||
|
uses: ./.github/workflows/macos.yml
|
||||||
|
with:
|
||||||
|
godot-treeish: ${{ inputs.godot-treeish }}
|
||||||
|
limboai-treeish: ${{ github.sha }}
|
||||||
|
test-build: true
|
||||||
|
|
|
@ -10,6 +10,10 @@ on:
|
||||||
description: A tag, branch or commit hash in the LimboAI repository.
|
description: A tag, branch or commit hash in the LimboAI repository.
|
||||||
type: string
|
type: string
|
||||||
default: master
|
default: master
|
||||||
|
test-build:
|
||||||
|
description: Should we perform only a limited number of test builds?
|
||||||
|
type: boolean
|
||||||
|
default: false
|
||||||
|
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
inputs:
|
||||||
|
@ -21,6 +25,10 @@ on:
|
||||||
description: A tag, branch or commit hash in the LimboAI repository.
|
description: A tag, branch or commit hash in the LimboAI repository.
|
||||||
type: string
|
type: string
|
||||||
default: master
|
default: master
|
||||||
|
test-build:
|
||||||
|
description: Should we perform only a limited number of test builds?
|
||||||
|
type: boolean
|
||||||
|
default: false
|
||||||
|
|
||||||
# Global Settings
|
# Global Settings
|
||||||
env:
|
env:
|
||||||
|
@ -33,73 +41,88 @@ env:
|
||||||
jobs:
|
jobs:
|
||||||
windows-builds:
|
windows-builds:
|
||||||
runs-on: "windows-latest"
|
runs-on: "windows-latest"
|
||||||
name: ${{ matrix.name }}
|
name: ${{ matrix.opts.name }}
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
opts:
|
||||||
- name: Editor (x86_64, release)
|
- name: Editor (x86_64, release)
|
||||||
target: editor
|
target: editor
|
||||||
arch: x86_64
|
arch: x86_64
|
||||||
build-mono: false
|
build-mono: false
|
||||||
|
should-build: true
|
||||||
|
|
||||||
- name: Template (x86_64, release)
|
- name: Template (x86_64, release)
|
||||||
target: template_release
|
target: template_release
|
||||||
arch: x86_64
|
arch: x86_64
|
||||||
build-mono: false
|
build-mono: false
|
||||||
|
should-build: ${{ !inputs.test-build }}
|
||||||
|
|
||||||
- name: Template (x86_64, debug)
|
- name: Template (x86_64, debug)
|
||||||
target: template_debug
|
target: template_debug
|
||||||
arch: x86_64
|
arch: x86_64
|
||||||
build-mono: false
|
build-mono: false
|
||||||
|
should-build: ${{ !inputs.test-build }}
|
||||||
|
|
||||||
# - name: Editor (x86_32, release)
|
# - name: Editor (x86_32, release)
|
||||||
# target: editor
|
# target: editor
|
||||||
# arch: x86_32
|
# arch: x86_32
|
||||||
# build-mono: false
|
# build-mono: false
|
||||||
|
# should-build: ${{ !inputs.test-build }}
|
||||||
|
|
||||||
- name: Template (x86_32, release)
|
- name: Template (x86_32, release)
|
||||||
target: template_release
|
target: template_release
|
||||||
arch: x86_32
|
arch: x86_32
|
||||||
build-mono: false
|
build-mono: false
|
||||||
|
should-build: ${{ !inputs.test-build }}
|
||||||
|
|
||||||
- name: Template (x86_32, debug)
|
- name: Template (x86_32, debug)
|
||||||
target: template_debug
|
target: template_debug
|
||||||
arch: x86_32
|
arch: x86_32
|
||||||
build-mono: false
|
build-mono: false
|
||||||
|
should-build: ${{ !inputs.test-build }}
|
||||||
|
|
||||||
- name: Editor .NET (x86_64, release)
|
- name: Editor .NET (x86_64, release)
|
||||||
target: editor
|
target: editor
|
||||||
arch: x86_64
|
arch: x86_64
|
||||||
build-mono: true
|
build-mono: true
|
||||||
|
should-build: true
|
||||||
|
|
||||||
- name: Template .NET (x86_64, release)
|
- name: Template .NET (x86_64, release)
|
||||||
target: template_release
|
target: template_release
|
||||||
arch: x86_64
|
arch: x86_64
|
||||||
build-mono: true
|
build-mono: true
|
||||||
|
should-build: ${{ !inputs.test-build }}
|
||||||
|
|
||||||
- name: Template .NET (x86_64, debug)
|
- name: Template .NET (x86_64, debug)
|
||||||
target: template_debug
|
target: template_debug
|
||||||
arch: x86_64
|
arch: x86_64
|
||||||
build-mono: true
|
build-mono: true
|
||||||
|
should-build: ${{ !inputs.test-build }}
|
||||||
|
|
||||||
# - name: Editor .NET (x86_32, release)
|
# - name: Editor .NET (x86_32, release)
|
||||||
# target: editor
|
# target: editor
|
||||||
# arch: x86_32
|
# arch: x86_32
|
||||||
# build-mono: true
|
# build-mono: true
|
||||||
|
# should-build: ${{ !inputs.test-build }}
|
||||||
|
|
||||||
- name: Template .NET (x86_32, release)
|
- name: Template .NET (x86_32, release)
|
||||||
target: template_release
|
target: template_release
|
||||||
arch: x86_32
|
arch: x86_32
|
||||||
build-mono: true
|
build-mono: true
|
||||||
|
should-build: ${{ !inputs.test-build }}
|
||||||
|
|
||||||
- name: Template .NET (x86_32, debug)
|
- name: Template .NET (x86_32, debug)
|
||||||
target: template_debug
|
target: template_debug
|
||||||
arch: x86_32
|
arch: x86_32
|
||||||
build-mono: true
|
build-mono: true
|
||||||
|
should-build: ${{ !inputs.test-build }}
|
||||||
|
|
||||||
|
exclude:
|
||||||
|
- { opts: {should-build: false }}
|
||||||
|
|
||||||
env:
|
env:
|
||||||
BIN: godot.windows.${{matrix.target}}.${{matrix.arch}}${{ matrix.build-mono == true && '.mono' || '' }}
|
BIN: godot.windows.${{matrix.opts.target}}.${{matrix.opts.arch}}${{ matrix.opts.build-mono == true && '.mono' || '' }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Clone Godot
|
- name: Clone Godot
|
||||||
|
@ -147,17 +170,17 @@ jobs:
|
||||||
env:
|
env:
|
||||||
SCONS_CACHE: ${{github.workspace}}/.scons_cache/
|
SCONS_CACHE: ${{github.workspace}}/.scons_cache/
|
||||||
run: |
|
run: |
|
||||||
scons -j2 platform=windows target=${{matrix.target}} arch=${{matrix.arch}} module_mono_enabled=${{matrix.build-mono}} ${{env.SCONSFLAGS}}
|
scons -j2 platform=windows target=${{matrix.opts.target}} arch=${{matrix.opts.arch}} module_mono_enabled=${{matrix.opts.build-mono}} ${{env.SCONSFLAGS}}
|
||||||
|
|
||||||
- name: Generate C# glue
|
- name: Generate C# glue
|
||||||
if: matrix.build-mono && matrix.target == 'editor'
|
if: matrix.opts.build-mono && matrix.opts.target == 'editor'
|
||||||
env:
|
env:
|
||||||
GODOT_VERSION_STATUS: limboai
|
GODOT_VERSION_STATUS: limboai
|
||||||
run: |
|
run: |
|
||||||
./bin/${{ env.BIN }} --headless --generate-mono-glue ./modules/mono/glue || true
|
./bin/${{ env.BIN }} --headless --generate-mono-glue ./modules/mono/glue || true
|
||||||
|
|
||||||
- name: Build .NET solutions
|
- name: Build .NET solutions
|
||||||
if: matrix.build-mono && matrix.target == 'editor'
|
if: matrix.opts.build-mono && matrix.opts.target == 'editor'
|
||||||
env:
|
env:
|
||||||
GODOT_VERSION_STATUS: limboai
|
GODOT_VERSION_STATUS: limboai
|
||||||
run: |
|
run: |
|
||||||
|
@ -166,7 +189,7 @@ jobs:
|
||||||
- name: Prepare artifact
|
- name: Prepare artifact
|
||||||
shell: bash
|
shell: bash
|
||||||
env:
|
env:
|
||||||
OUTDIR: ${{ startsWith(matrix.target, 'template') && 'out/templates' || 'out/' }}
|
OUTDIR: ${{ startsWith(matrix.opts.target, 'template') && 'out/templates' || 'out/' }}
|
||||||
run: |
|
run: |
|
||||||
rm -f bin/*.{exp,lib,pdb}
|
rm -f bin/*.{exp,lib,pdb}
|
||||||
mkdir -p ${{env.OUTDIR}}
|
mkdir -p ${{env.OUTDIR}}
|
||||||
|
@ -174,21 +197,21 @@ jobs:
|
||||||
ls -R out/
|
ls -R out/
|
||||||
|
|
||||||
- name: Rename templates
|
- name: Rename templates
|
||||||
if: startsWith(matrix.target, 'template')
|
if: startsWith(matrix.opts.target, 'template')
|
||||||
shell: bash
|
shell: bash
|
||||||
env:
|
env:
|
||||||
BUILD_TYPE: ${{ endsWith(matrix.target, 'release') && 'release' || 'debug' }}
|
BUILD_TYPE: ${{ endsWith(matrix.opts.target, 'release') && 'release' || 'debug' }}
|
||||||
run: |
|
run: |
|
||||||
mv out/templates/${BIN}.exe out/templates/windows_${BUILD_TYPE}_${{matrix.arch}}.exe
|
mv out/templates/${BIN}.exe out/templates/windows_${BUILD_TYPE}_${{matrix.opts.arch}}.exe
|
||||||
mv out/templates/${BIN}.console.exe out/templates/windows_${BUILD_TYPE}_${{matrix.arch}}_console.exe
|
mv out/templates/${BIN}.console.exe out/templates/windows_${BUILD_TYPE}_${{matrix.opts.arch}}_console.exe
|
||||||
echo "${GODOT_VERSION}.limboai+${LIMBOAI_VERSION}" > out/templates/version.txt
|
echo "${GODOT_VERSION}.limboai+${LIMBOAI_VERSION}" > out/templates/version.txt
|
||||||
ls -R out/
|
ls -R out/
|
||||||
|
|
||||||
- name: Upload artifact
|
- name: Upload artifact
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
env:
|
env:
|
||||||
NAME_EDITOR: ${{env.NAME_PREFIX}}.${{matrix.target}}.windows.${{matrix.arch}}${{ matrix.build-mono == true && '.mono' || '' }}
|
NAME_EDITOR: ${{env.NAME_PREFIX}}.${{matrix.opts.target}}.windows.${{matrix.opts.arch}}${{ matrix.opts.build-mono == true && '.mono' || '' }}
|
||||||
NAME_TEMPLATES: ${{env.NAME_PREFIX}}.export-templates${{ matrix.build-mono == true && '.mono' || '' }}
|
NAME_TEMPLATES: ${{env.NAME_PREFIX}}.export-templates${{ matrix.opts.build-mono == true && '.mono' || '' }}
|
||||||
with:
|
with:
|
||||||
name: ${{ startsWith(matrix.target, 'template') && env.NAME_TEMPLATES || env.NAME_EDITOR }}
|
name: ${{ startsWith(matrix.opts.target, 'template') && env.NAME_TEMPLATES || env.NAME_EDITOR }}
|
||||||
path: out/*
|
path: out/*
|
||||||
|
|
Loading…
Reference in New Issue