Skip to content

temple complex: moved hardcoded images id to config #70

temple complex: moved hardcoded images id to config

temple complex: moved hardcoded images id to config #70

name: Akhenaten Build Emscripten
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build-akhenaten-emscripten-module:
name: run on linux
runs-on: ubuntu-22.04
container: emscripten/emsdk:4.0.1
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: build-project
run: |
git config --global --add safe.directory "*"
mkdir -p akhenaten-emscripten-module
mkdir -p build
cd build
emcmake cmake ../ -DCMAKE_BUILD_PLATFORM=win_emscripten -DCMAKE_BUILD_TYPE=Release -DCMAKE_EXE_LINKER_FLAGS="-sMODULARIZE -sEXPORTED_RUNTIME_METHODS=callMain -sEXPORT_ALL -sEXPORT_NAME=akhenatem" -DCMAKE_CXX_FLAGS="" && emmake make
cd ..
cp build/akhenaten.js akhenaten-emscripten-module/
cp build/akhenaten.wasm akhenaten-emscripten-module/
- uses: actions/upload-artifact@v4
with:
name: emscripten_build
path: akhenaten-emscripten-module
build-Akhenaten-ems-launcher:
runs-on: ubuntu-latest
needs: build-akhenaten-emscripten-module
steps:
- name: Checkout launcher 🛎️
uses: actions/checkout@v4
with:
#or use your fork
repository: ololoken/akhenaten-ems
ref: refs/heads/main
- uses: actions/download-artifact@v4
with:
name: emscripten_build
path: src/assets/akhenaten/
env:
VITE_BASE: /
- name: Install and Build 🔧
run: |
npm install
npm run build
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: akhenaten-wasm
folder: dist
- name: Configure git for target repo
run: |
git config --global user.name "gitbub actions"
git config --global user.email "[email protected]"
git remote add pages_deploy https://${{ secrets.PAGES_DEPLOY }}@github.com/dalerank/dalerank.github.io
git checkout akhenaten-wasm
git checkout --orphan temp_branch
rm -rf ./dist
rm -rf ./node_modules
rm -rf ./src
git add -A
git commit -m "Deploy Pages"
git push --force pages_deploy temp_branch:main
git checkout akhenaten-wasm
git branch -D temp_branch