Skip to content

log more, refactor

log more, refactor #4

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: "22"
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
- name: Get clangd wasm
run: |
curl --output public/wasm/clangd.wasm https://clangd.guyutongxue.site/wasm/clangd.wasm
curl --output public/wasm/clangd.js https://clangd.guyutongxue.site/wasm/clangd.js
- run: pnpm build
- 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:
- uses: actions/deploy-pages@v4
id: deployment