Skip to content

update application.cpp #58

update application.cpp

update application.cpp #58

Workflow file for this run

name: Web
on:
push:
branches: ["master"]
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: true
jobs:
build-and-deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: submodules
run: |
git submodule update --init --recursive vendor/assimp
git submodule update --init --recursive vendor/imgui
git submodule update --init --recursive vendor/ImGuizmo
git submodule update --init --recursive vendor/ozz-animation
git submodule update --init --recursive vendor/spdlog
git submodule update --init --recursive vendor/flecs
git submodule update --init --recursive vendor/stb
git submodule update --init --recursive vendor/JoltPhysics
git submodule update --init --recursive vendor/KTX-Software
- name: emscripten
uses: mymindstorm/setup-emsdk@v14
with:
version: 4.0.10
- name: cmake configure
run: |
export EMSCRIPTEN=$EMSDK/upstream/emscripten
cmake --preset emscripten-debug -DCMAKE_TOOLCHAIN_FILE=$EMSDK/upstream/emscripten/cmake/Modules/Platform/Emscripten.cmake
- name: cmake build
run: cmake --build build/emscripten-debug --parallel
- name: copy files
run: |
mkdir -p deploy
cp html/templates/index.html deploy/index.html
cp build/emscripten-debug/bin/WebEngine.js deploy/
cp build/emscripten-debug/bin/WebEngine.data deploy/
cp build/emscripten-debug/bin/WebEngine.wasm deploy/
cp -r Resources deploy/
- uses: actions/configure-pages@v5
- uses: actions/upload-pages-artifact@v3
with:
path: deploy
retention-days: 1
- id: deployment
uses: actions/deploy-pages@v4