mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-08-18 06:55:48 +03:00
- Fixed emscripten build
- Added .github/workflows/eepp-emscripten-build-check.yml - Mirrors Linux CI structure. - Uses Premake 5 beta6. - Pins Emscripten 4.0.1. - Caches EMSDK system libraries. - Builds with all available cores. - Completed Premake 5 Emscripten support: - Native wasm32 platform. - Correct .html application targets. - Asset preloading restored from Premake 4. - SDL2 supplied through Emscripten instead of native -lSDL2. - Static archives emitted under libs/emscripten/wasm32/. - Unsupported shared-library projects excluded. - Modernized projects/emscripten/make.sh.
This commit is contained in:
37
.github/workflows/eepp-emscripten-build-check.yml
vendored
Normal file
37
.github/workflows/eepp-emscripten-build-check.yml
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
name: Emscripten
|
||||
|
||||
on: [push, pull_request]
|
||||
|
||||
env:
|
||||
EM_VERSION: 4.0.1
|
||||
EM_CACHE_FOLDER: emsdk-cache
|
||||
|
||||
jobs:
|
||||
Emscripten:
|
||||
runs-on: ubuntu-24.04
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v6
|
||||
with:
|
||||
ref: ${{ github.ref }}
|
||||
fetch-depth: 2
|
||||
- name: Checkout submodules
|
||||
run: |
|
||||
git submodule update --init --recursive
|
||||
- name: Install Premake
|
||||
run: |
|
||||
wget https://cdn.ensoft.dev/eepp-assets/premake-5.0.0-beta6-linux.tar.gz
|
||||
tar xvzf premake-5.0.0-beta6-linux.tar.gz
|
||||
- name: Cache Emscripten system libraries
|
||||
uses: actions/cache@v5
|
||||
with:
|
||||
path: ${{ env.EM_CACHE_FOLDER }}
|
||||
key: emscripten-${{ env.EM_VERSION }}-${{ runner.os }}
|
||||
- name: Setup Emscripten
|
||||
uses: emscripten-core/setup-emsdk@v15
|
||||
with:
|
||||
version: ${{ env.EM_VERSION }}
|
||||
actions-cache-folder: ${{ env.EM_CACHE_FOLDER }}
|
||||
- name: Build
|
||||
run: |
|
||||
projects/emscripten/make.sh config=release_wasm32
|
||||
Reference in New Issue
Block a user