GHA: Build nothreads variant of web templates
This commit is contained in:
parent
d98be526b6
commit
e3305782f2
|
@ -40,18 +40,42 @@ jobs:
|
||||||
include:
|
include:
|
||||||
- name: Template (release)
|
- name: Template (release)
|
||||||
target: template_release
|
target: template_release
|
||||||
|
threads: true
|
||||||
dlink: false
|
dlink: false
|
||||||
|
|
||||||
- name: Template (release, dlink_enabled=true)
|
- name: Template (release, dlink)
|
||||||
target: template_release
|
target: template_release
|
||||||
|
threads: true
|
||||||
dlink: true
|
dlink: true
|
||||||
|
|
||||||
- name: Template (debug)
|
- name: Template (debug)
|
||||||
target: template_debug
|
target: template_debug
|
||||||
|
threads: true
|
||||||
dlink: false
|
dlink: false
|
||||||
|
|
||||||
- name: Template (debug, dlink_enabled=true)
|
- name: Template (debug, dlink)
|
||||||
target: template_debug
|
target: template_debug
|
||||||
|
threads: true
|
||||||
|
dlink: true
|
||||||
|
|
||||||
|
- name: Template (release, nothreads)
|
||||||
|
target: template_release
|
||||||
|
threads: false
|
||||||
|
dlink: false
|
||||||
|
|
||||||
|
- name: Template (release, nothreads, dlink)
|
||||||
|
target: template_release
|
||||||
|
threads: false
|
||||||
|
dlink: true
|
||||||
|
|
||||||
|
- name: Template (debug, nothreads)
|
||||||
|
target: template_debug
|
||||||
|
threads: false
|
||||||
|
dlink: false
|
||||||
|
|
||||||
|
- name: Template (debug, nothreads, dlink)
|
||||||
|
target: template_debug
|
||||||
|
threads: false
|
||||||
dlink: true
|
dlink: true
|
||||||
|
|
||||||
env:
|
env:
|
||||||
|
@ -110,20 +134,24 @@ jobs:
|
||||||
env:
|
env:
|
||||||
SCONS_CACHE: ${{github.workspace}}/.scons_cache/
|
SCONS_CACHE: ${{github.workspace}}/.scons_cache/
|
||||||
run: |
|
run: |
|
||||||
scons platform=web target=${{matrix.target}} dlink_enabled=${{matrix.dlink}} ${{env.SCONSFLAGS}}
|
scons platform=web target=${{matrix.target}} threads=${{matrix.threads}} dlink_enabled=${{matrix.dlink}} ${{env.SCONSFLAGS}}
|
||||||
|
|
||||||
- name: Prepare artifacts
|
- name: Prepare artifacts
|
||||||
run: |
|
run: |
|
||||||
mkdir -p out/templates/
|
mkdir -p out/templates/
|
||||||
mv bin/godot.web.template_release.wasm32.zip out/templates/web_release.zip || true
|
|
||||||
mv bin/godot.web.template_release.wasm32.dlink.zip out/templates/web_dlink_release.zip || true
|
|
||||||
mv bin/godot.web.template_debug.wasm32.zip out/templates/web_debug.zip || true
|
mv bin/godot.web.template_debug.wasm32.zip out/templates/web_debug.zip || true
|
||||||
|
mv bin/godot.web.template_debug.wasm32.nothreads.zip out/templates/web_nothreads_debug.zip || true
|
||||||
mv bin/godot.web.template_debug.wasm32.dlink.zip out/templates/web_dlink_debug.zip || true
|
mv bin/godot.web.template_debug.wasm32.dlink.zip out/templates/web_dlink_debug.zip || true
|
||||||
|
mv bin/godot.web.template_debug.wasm32.nothreads.dlink.zip out/templates/web_dlink_nothreads_debug.zip || true
|
||||||
|
mv bin/godot.web.template_release.wasm32.zip out/templates/web_release.zip || true
|
||||||
|
mv bin/godot.web.template_release.wasm32.nothreads.zip out/templates/web_nothreads_release.zip || true
|
||||||
|
mv bin/godot.web.template_release.wasm32.dlink.zip out/templates/web_dlink_release.zip || true
|
||||||
|
mv bin/godot.web.template_release.wasm32.nothreads.dlink.zip out/templates/web_dlink_nothreads_release.zip || true
|
||||||
rm -rf bin/
|
rm -rf bin/
|
||||||
echo "${GODOT_VERSION}.limboai+${LIMBOAI_VERSION}" > out/templates/version.txt
|
echo "${GODOT_VERSION}.limboai+${LIMBOAI_VERSION}" > out/templates/version.txt
|
||||||
|
|
||||||
- name: Upload artifact
|
- name: Upload artifact
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: ${{env.NAME_PREFIX}}.${{matrix.target}}.web${{matrix.dlink == true && '.dlink' || ''}}
|
name: ${{env.NAME_PREFIX}}.${{matrix.target}}.web${{matrix.threads == false && '.nothreads' || ''}}${{matrix.dlink == true && '.dlink' || ''}}
|
||||||
path: out/*
|
path: out/*
|
||||||
|
|
Loading…
Reference in New Issue