Skip to content

added const

added const #33

Workflow file for this run

name: Emscripten Build and Deploy to GitHub Pages
on:
push:
branches:
- main
workflow_dispatch:
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Clone Emscripten
run: |
git clone https://github.com/emscripten-core/emsdk.git
cd emsdk
./emsdk install latest
./emsdk activate latest
echo "EMSDK_PATH=$(pwd)/emsdk" >> $GITHUB_ENV
echo "EMSDK_NODE=$(pwd)/node/14.15.5_64bit/bin" >> $GITHUB_ENV
echo "EMSCRIPTEN=$(pwd)/upstream/emscripten" >> $GITHUB_ENV
echo "PATH=$(pwd):$(pwd)/upstream/emscripten:$(pwd)/node/14.15.5_64bit/bin:$PATH" >> $GITHUB_ENV
echo "PATH=$(pwd):/home/runner/work/laszlo/laszlo/emsdk:/home/runner/work/laszlo/laszlo/emsdk/upstream/emscripten:$PATH" >> $GITHUB_ENV
cd ..
- name: Create Build Directory
run: |
mkdir build
- name: Configure CMake Project and Build
run: |
cd build
emcmake cmake -DCMAKE_BUILD_TYPE=Release ..
cmake --build .
mv src/laszlo.html src/index.html
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
publish_dir: ./build/src # Specify the directory you want to publish
publish_branch: gh-pages # The target branch
keep_files: false # Set to false to remove existing files in gh-pages branch