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: make repo web-only consistent — drop native build + editor steps

esengineea4cb1ffdfec
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 876190a71..e573f41a5 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -4,43 +4,6 @@ on:
workflow_dispatch:
jobs:
- build-linux:
- name: Linux (Ubuntu GCC)
- runs-on: ubuntu-latest
-
- steps:
- - uses: actions/checkout@v4
- with:
- submodules: recursive
-
- - name: Install dependencies
- run: |
- sudo apt-get update
- sudo apt-get install -y \
- cmake \
- ninja-build \
- libglfw3-dev \
- libgl1-mesa-dev \
- xorg-dev \
- libxkbcommon-dev \
- ccache
-
- - name: Setup ccache
- uses: hendrikmuhs/[email protected]
- with:
- key: ${{ runner.os }}-build-linux
- max-size: 500M
-
- - name: Configure CMake
- run: cmake -B build -G Ninja -DCMAKE_BUILD_TYPE=Debug -DES_ENABLE_CCACHE=ON
-
- - name: Build
- run: cmake --build build
-
- - name: Test
- working-directory: build
- run: ctest --output-on-failure
-
build-emscripten:
name: Web (Emscripten)
runs-on: ubuntu-latest
@@ -95,7 +58,7 @@ jobs:
run: node build-tools/cli.js build -t all --no-sync --continue-on-error
test:
- name: Tests (SDK + Editor)
+ name: Tests (SDK)
runs-on: ubuntu-latest
steps:
@@ -120,14 +83,8 @@ jobs:
- name: Build SDK
run: pnpm --filter ./sdk build
- - name: Type-check Editor
- run: pnpm exec tsc --noEmit -p editor/tsconfig.json
-
- name: Type-check Examples
run: node build-tools/cli.js check-examples
- name: Run SDK tests
run: pnpm --filter ./sdk exec vitest run
-
- - name: Run Editor tests
- run: pnpm --filter ./editor exec vitest run
diff --git a/CMakeLists.txt b/CMakeLists.txt
index ac0a036cf..ea76a133d 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -231,19 +231,15 @@ if(ES_BUILD_WEB OR ES_BUILD_WXGAME)
src/esengine/platform/web/WebFileSystem.cpp
)
else()
+ # Web-only repo: the native platform layer (NativePlatform/NativeFileSystem/
+ # FileDialog) was removed in d9a08d87. Keep only the platform-agnostic
+ # sources a native tooling/test build still needs.
list(APPEND ESENGINE_SOURCES
- src/esengine/platform/native/NativePlatform.cpp
- src/esengine/platform/native/NativeFileSystem.cpp
- src/esengine/platform/FileDialog.cpp
src/esengine/renderer/stb_image_impl.cpp
src/esengine/resource/LoaderJobQueue.cpp
src/esengine/resource/HotReloadManager.cpp
src/esengine/resource/loaders/ShaderLoader.cpp
)
- list(APPEND ESENGINE_HEADERS
- src/esengine/platform/native/NativePlatform.hpp
- src/esengine/platform/FileDialog.hpp
- )
endif()
# =============================================================================