From e3305782f2299be7abf962e0c12b9627154e39d2 Mon Sep 17 00:00:00 2001 From: Serhii Snitsaruk Date: Mon, 1 Jul 2024 13:32:02 +0200 Subject: [PATCH 1/2] GHA: Build nothreads variant of web templates --- .github/workflows/web.yml | 40 +++++++++++++++++++++++++++++++++------ 1 file changed, 34 insertions(+), 6 deletions(-) diff --git a/.github/workflows/web.yml b/.github/workflows/web.yml index da9371d..b5c434d 100644 --- a/.github/workflows/web.yml +++ b/.github/workflows/web.yml @@ -40,18 +40,42 @@ jobs: include: - name: Template (release) target: template_release + threads: true dlink: false - - name: Template (release, dlink_enabled=true) + - name: Template (release, dlink) target: template_release + threads: true dlink: true - name: Template (debug) target: template_debug + threads: true dlink: false - - name: Template (debug, dlink_enabled=true) + - name: Template (debug, dlink) 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 env: @@ -110,20 +134,24 @@ jobs: env: SCONS_CACHE: ${{github.workspace}}/.scons_cache/ 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 run: | 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.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.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/ echo "${GODOT_VERSION}.limboai+${LIMBOAI_VERSION}" > out/templates/version.txt - name: Upload artifact uses: actions/upload-artifact@v4 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/* From ed19d787f678e239361a2a4707c8b108cc7cdacc Mon Sep 17 00:00:00 2001 From: Serhii Snitsaruk Date: Mon, 1 Jul 2024 14:58:05 +0200 Subject: [PATCH 2/2] GHA: Install Wayland deps for Linux builds --- .github/workflows/linux.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index bdfbfa3..252269a 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -144,6 +144,10 @@ jobs: with: arch: ${{matrix.opts.arch}} + - name: Set up Wayland deps + run: | + sudo apt-get install libwayland-dev + - name: Set up scons cache uses: actions/cache@v4 with: