Skip to content

Upgrade textmate grammar to support type instantiation (#46) #78

Upgrade textmate grammar to support type instantiation (#46)

Upgrade textmate grammar to support type instantiation (#46) #78

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@v4
- name: Checkout emsdk
uses: actions/checkout@v4
with:
repository: emscripten-core/emsdk
path: emsdk
- name: Restore build cache
uses: actions/cache@v4
with:
path: |
emsdk
wasm/build
wasm/luau
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@v4
with:
node-version: 20
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@v4
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
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