-
Notifications
You must be signed in to change notification settings - Fork 3
43 lines (41 loc) · 1.02 KB
/
website.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Website
on:
push:
branches:
- main
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 10.0.0
- name: pnpm install
run: pnpm install --frozen-lockfile
- name: Generate Static Site
run: pnpm ssg
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
- uses: actions/setup-node@v4
with:
node-version: 22.x
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 10.0.0
- name: pnpm install
run: pnpm install --frozen-lockfile
- name: Cache Cargo
uses: Swatinem/rust-cache@v2
with:
key: cargo-build-wasm
- name: Setup wasm-pack
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
- name: Build and Test WASM
run: pnpm bw