container
This commit is contained in:
parent
c1073b4cec
commit
7cc76d95cb
|
@ -5,7 +5,7 @@ on:
|
||||||
godot-ref:
|
godot-ref:
|
||||||
description: A tag, branch or commit hash in the Godot repository.
|
description: A tag, branch or commit hash in the Godot repository.
|
||||||
type: string
|
type: string
|
||||||
default: master
|
default: 4.3
|
||||||
limboai-ref:
|
limboai-ref:
|
||||||
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
|
||||||
|
@ -20,7 +20,7 @@ on:
|
||||||
godot-ref:
|
godot-ref:
|
||||||
description: A tag, branch or commit hash in the Godot repository.
|
description: A tag, branch or commit hash in the Godot repository.
|
||||||
type: string
|
type: string
|
||||||
default: master
|
default: 4.3
|
||||||
limboai-ref:
|
limboai-ref:
|
||||||
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
|
||||||
|
@ -32,11 +32,9 @@ on:
|
||||||
|
|
||||||
# Global Settings
|
# Global Settings
|
||||||
env:
|
env:
|
||||||
SCONS_CACHE_MSVC_CONFIG: true
|
BUILD_IMAGE_VERSION: 4.3-f40
|
||||||
SCONS_CACHE_LIMIT: 4096
|
SCONS_CACHE_LIMIT: 4096
|
||||||
SCONSFLAGS: production=yes use_mingw=yes verbose=yes warnings=no progress=no
|
SCONSFLAGS: production=yes use_mingw=yes verbose=yes warnings=no progress=no
|
||||||
DOTNET_NOLOGO: true
|
|
||||||
DOTNET_CLI_TELEMETRY_OPTOUT: true
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
windows-builds:
|
windows-builds:
|
||||||
|
@ -51,6 +49,7 @@ jobs:
|
||||||
- name: Editor (x86_64, release)
|
- name: Editor (x86_64, release)
|
||||||
target: editor
|
target: editor
|
||||||
arch: x86_64
|
arch: x86_64
|
||||||
|
scons-flags: editor=yes
|
||||||
llvm: false
|
llvm: false
|
||||||
dotnet: false
|
dotnet: false
|
||||||
should-build: true
|
should-build: true
|
||||||
|
@ -106,6 +105,7 @@ jobs:
|
||||||
arch: arm64
|
arch: arm64
|
||||||
llvm: true
|
llvm: true
|
||||||
dotnet: false
|
dotnet: false
|
||||||
|
scons-flags: mingw_prefix=/root/llvm-mingw
|
||||||
should-build: ${{ !inputs.test-build }}
|
should-build: ${{ !inputs.test-build }}
|
||||||
|
|
||||||
- name: Template (arm64, debug)
|
- name: Template (arm64, debug)
|
||||||
|
@ -113,6 +113,7 @@ jobs:
|
||||||
arch: arm64
|
arch: arm64
|
||||||
llvm: true
|
llvm: true
|
||||||
dotnet: false
|
dotnet: false
|
||||||
|
scons-flags: mingw_prefix=/root/llvm-mingw
|
||||||
should-build: ${{ !inputs.test-build }}
|
should-build: ${{ !inputs.test-build }}
|
||||||
|
|
||||||
# * .NET x86_64
|
# * .NET x86_64
|
||||||
|
@ -122,7 +123,7 @@ jobs:
|
||||||
arch: x86_64
|
arch: x86_64
|
||||||
llvm: false
|
llvm: false
|
||||||
dotnet: true
|
dotnet: true
|
||||||
should-build: ${{ !inputs.test-build }}
|
should-build: true
|
||||||
|
|
||||||
- name: Template .NET (x86_64, release)
|
- name: Template .NET (x86_64, release)
|
||||||
target: template_release
|
target: template_release
|
||||||
|
@ -175,6 +176,7 @@ jobs:
|
||||||
arch: arm64
|
arch: arm64
|
||||||
llvm: true
|
llvm: true
|
||||||
dotnet: true
|
dotnet: true
|
||||||
|
scons-flags: mingw_prefix=/root/llvm-mingw
|
||||||
should-build: ${{ !inputs.test-build }}
|
should-build: ${{ !inputs.test-build }}
|
||||||
|
|
||||||
- name: Template .NET (arm64, debug)
|
- name: Template .NET (arm64, debug)
|
||||||
|
@ -182,6 +184,7 @@ jobs:
|
||||||
arch: arm64
|
arch: arm64
|
||||||
llvm: true
|
llvm: true
|
||||||
dotnet: true
|
dotnet: true
|
||||||
|
scons-flags: mingw_prefix=/root/llvm-mingw
|
||||||
should-build: ${{ !inputs.test-build }}
|
should-build: ${{ !inputs.test-build }}
|
||||||
|
|
||||||
exclude:
|
exclude:
|
||||||
|
@ -206,32 +209,60 @@ jobs:
|
||||||
# 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
|
||||||
|
|
||||||
- name: Set up Linux toolchain
|
# - name: Set up Linux toolchain
|
||||||
uses: ./modules/limboai/.github/actions/setup-linux-toolchain
|
# uses: ./modules/limboai/.github/actions/setup-linux-toolchain
|
||||||
with:
|
# with:
|
||||||
arch: ${{matrix.opts.arch}}
|
# arch: ${{matrix.opts.arch}}
|
||||||
|
|
||||||
- name: Set up MinGW
|
# - name: Set up MinGW
|
||||||
uses: ./modules/limboai/.github/actions/setup-mingw-ubuntu
|
# uses: ./modules/limboai/.github/actions/setup-mingw-ubuntu
|
||||||
with:
|
# with:
|
||||||
arch: ${{matrix.opts.arch}}
|
# arch: ${{matrix.opts.arch}}
|
||||||
|
|
||||||
- name: Set up scons cache
|
# - name: Set up scons cache
|
||||||
uses: actions/cache@v4
|
# uses: actions/cache@v4
|
||||||
with:
|
# with:
|
||||||
path: ${{github.workspace}}/.scons_cache/
|
# path: ${{github.workspace}}/.scons_cache/
|
||||||
key: ${{env.BIN}}-${{inputs.godot-ref}}-${{inputs.limboai-ref}}-${{env.LIMBOAI_VERSION}}
|
# key: ${{env.BIN}}-${{inputs.godot-ref}}-${{inputs.limboai-ref}}-${{env.LIMBOAI_VERSION}}
|
||||||
# restore-keys: |
|
# restore-keys: |
|
||||||
# ${{env.BIN}}-${{inputs.godot-ref}}-${{inputs.limboai-ref}}-${{env.LIMBOAI_VERSION}}
|
# ${{env.BIN}}-${{inputs.godot-ref}}-${{inputs.limboai-ref}}-${{env.LIMBOAI_VERSION}}
|
||||||
# ${{env.BIN}}-${{inputs.godot-ref}}-${{inputs.limboai-ref}}
|
# ${{env.BIN}}-${{inputs.godot-ref}}-${{inputs.limboai-ref}}
|
||||||
# ${{env.BIN}}-${{inputs.godot-ref}}
|
# ${{env.BIN}}-${{inputs.godot-ref}}
|
||||||
|
|
||||||
- name: Compilation
|
# - name: Compilation
|
||||||
env:
|
# env:
|
||||||
SCONS_CACHE: ${{github.workspace}}/.scons_cache/
|
# SCONS_CACHE: ${{github.workspace}}/.scons_cache/
|
||||||
|
# run: |
|
||||||
|
# PATH=${GITHUB_WORKSPACE}/buildroot/bin:$PATH
|
||||||
|
# scons platform=windows target=${{matrix.opts.target}} arch=${{matrix.opts.arch}} use_llvm=${{matrix.opts.llvm}} module_mono_enabled=${{matrix.opts.dotnet}} ${{env.SCONSFLAGS}}
|
||||||
|
|
||||||
|
- name: Pull build container
|
||||||
run: |
|
run: |
|
||||||
PATH=${GITHUB_WORKSPACE}/buildroot/bin:$PATH
|
podman pull ghcr.io/limbonaut/godot-windows:${{env.BUILD_IMAGE_VERSION}}
|
||||||
scons platform=windows target=${{matrix.opts.target}} arch=${{matrix.opts.arch}} use_llvm=${{matrix.opts.llvm}} module_mono_enabled=${{matrix.opts.dotnet}} ${{env.SCONSFLAGS}}
|
|
||||||
|
- name: Build using container
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
scons_command="scons \
|
||||||
|
platform=windows \
|
||||||
|
target=${{matrix.opts.target}} \
|
||||||
|
arch=${{matrix.opts.arch}} \
|
||||||
|
use_llvm=${{matrix.opts.llvm}} \
|
||||||
|
module_mono_enabled=${{matrix.opts.dotnet}} \
|
||||||
|
${{env.SCONSFLAGS}} \
|
||||||
|
${{matrix.opts.scons-flags}} \
|
||||||
|
"
|
||||||
|
podman_run="podman run -it --rm \
|
||||||
|
--env GODOT_VERSION_STATUS=${GODOT_VERSION_STATUS} \
|
||||||
|
--env NUM_CORES=$(nproc --all) \
|
||||||
|
--env SCONS_CACHE_LIMIT=${SCONS_CACHE_LIMIT} \
|
||||||
|
--env DOTNET_NOLOGO=true \
|
||||||
|
--env DOTNET_CLI_TELEMETRY_OPTOUT=true \
|
||||||
|
-v ${GITHUB_WORKSPACE}/:/build/ \
|
||||||
|
-w /build godot-windows:${{env.BUILD_IMAGE_VERSION}} bash -c \
|
||||||
|
"
|
||||||
|
echo "Running ${podman_run} \"${scons_command}\""
|
||||||
|
${podman_run} "${scons_command}"
|
||||||
|
|
||||||
- name: Prepare artifact
|
- name: Prepare artifact
|
||||||
shell: bash
|
shell: bash
|
||||||
|
@ -273,7 +304,7 @@ jobs:
|
||||||
arch: x86_64
|
arch: x86_64
|
||||||
llvm: false
|
llvm: false
|
||||||
dotnet: true
|
dotnet: true
|
||||||
should-build: ${{ !inputs.test-build }}
|
should-build: true
|
||||||
|
|
||||||
exclude:
|
exclude:
|
||||||
- { opts: { should-build: false } }
|
- { opts: { should-build: false } }
|
||||||
|
|
Loading…
Reference in New Issue