Skip to content

Disable state saving/loading in embed mode (#51) #85

Disable state saving/loading in embed mode (#51)

Disable state saving/loading in embed mode (#51) #85

Workflow file for this run

# Deploy to GitHub Pages on push to main
name: Deploy to GitHub Pages
on:
push:
branches: [main]
workflow_dispatch:
schedule:
- cron: "0 0 * * 6"
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: pages
cancel-in-progress: false
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Checkout emsdk
uses: actions/checkout@v6
with:
repository: emscripten-core/emsdk
path: emsdk
- name: Restore build cache
uses: actions/cache@v5
with:
path: |
emsdk
wasm/build
wasm/luau
public/wasm/luau.wasm
src/lib/luau/luau-module.js
key: build-${{ runner.os }}-${{ hashFiles('wasm/src/**', 'wasm/CMakeLists.txt', 'wasm/build.sh') }}-luau-${{ github.run_id }}
restore-keys: |
build-${{ runner.os }}-${{ hashFiles('wasm/src/**', 'wasm/CMakeLists.txt', 'wasm/build.sh') }}-luau-
build-${{ runner.os }}-
- name: Install Emscripten
run: |
cd emsdk
./emsdk install latest
./emsdk activate latest
- name: Clone or update Luau
run: |
if [ ! -d "wasm/luau" ]; then
git clone --depth 1 https://github.com/Roblox/luau.git wasm/luau
else
cd wasm/luau
git fetch origin
git diff --quiet HEAD FETCH_HEAD || git reset --hard FETCH_HEAD
fi
- name: Build WASM
run: |
source emsdk/emsdk_env.sh
cd wasm
./build.sh release
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: 24
cache: npm
- name: Install dependencies
run: npm ci
- name: Build
# Use relative base so the same build works from any path (/ or /playground/)
run: npx vite build --base=./
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Upload artifact
uses: actions/upload-pages-artifact@v4
with:
path: dist
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4