Skip to content

A fast 2D and 3D game engine — TypeScript SDK, C++/WebAssembly core, visual editor. Ship one project to web, desktop, WeChat MiniGames, playable ads, and native Android / iOS.

ci(release): the native templates compile on every core

yhh4a8cd1a652e3
diff --git a/.github/workflows/release-desktop.yml b/.github/workflows/release-desktop.yml
index 11c9d8af5..d7da901fb 100644
--- a/.github/workflows/release-desktop.yml
+++ b/.github/workflows/release-desktop.yml
@@ -247,6 +247,12 @@ jobs:
if: matrix.name == 'windows'
uses: ilammy/msvc-dev-cmd@v1
+ # A build leaves two cores free so a desktop stays usable; a runner has nothing
+ # else to do, and macOS has three, so iOS compiled on one thread, twice.
+ - name: Compile on every core
+ shell: bash
+ run: echo "ESTELLA_BUILD_JOBS=${NUMBER_OF_PROCESSORS:-$(getconf _NPROCESSORS_ONLN)}" >> "$GITHUB_ENV"
+
- name: Fetch Dawn + QuickJS at their pinned commits
if: matrix.name != 'android'
run: node build-tools/cli.js native --fetch-deps