chore(deps): update dependency wasm-pack to ^0.13.0 #65
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 测试 | |
on: | |
push: | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
env: | |
NUXT_APP_BASE_URL: /StrangeAttractors/ | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: 安装 Rust | |
uses: dtolnay/rust-toolchain@v1 | |
with: | |
toolchain: stable | |
- name: Rust 缓存 | |
uses: Swatinem/rust-cache@v2 | |
with: | |
workspaces: "./attractors -> pkg" | |
- name: 安装 Bun | |
uses: oven-sh/setup-bun@v2 | |
- name: 安装依赖 | |
run: | | |
cargo install wasm-pack | |
bun install --frozen-lockfile | |
- name: 构建网页 | |
env: | |
NODE_OPTIONS: --max_old_space_size=8192 | |
run: | | |
bun wasm | |
bun generate |