Skip to content

Update main.worker.ts #23

Update main.worker.ts

Update main.worker.ts #23

Workflow file for this run

name: GitHub Pages
on:
push:
branches: [main]
permissions:
contents: read
pages: write
id-token: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
- uses: actions/setup-node@v3
with:
node-version: "20"
cache: "pnpm"
- run: pnpm install --frozen-lockfile
- name: cache built clangd
id: cache-build
uses: actions/cache@v3
with:
path: ./public/wasm
key: build-script-${{ hashFiles('build.sh') }}
- if: ${{ steps.cache-build.outputs.cache-hit != 'true' }}
name: build clangd
run: |
sudo apt update
sudo apt install vim git build-essential cmake ninja-build python3
./build.sh
- run: pnpm build
- uses: actions/upload-pages-artifact@v1
with:
path: ./dist
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/deploy-pages@v1
id: deployment