File tree Expand file tree Collapse file tree 3 files changed +22
-1
lines changed
Expand file tree Collapse file tree 3 files changed +22
-1
lines changed Original file line number Diff line number Diff line change @@ -30,22 +30,41 @@ jobs:
3030 steps :
3131 - name : Checkout
3232 uses : actions/checkout@v5
33+
3334 - name : Set up Node
3435 uses : actions/setup-node@v4
3536 with :
3637 node-version : lts/*
3738 cache : ' npm'
39+
3840 - name : Install dependencies
3941 run : npm ci
42+
43+ - name : Set up Rust
44+ uses : actions-rs/toolchain@v1
45+ with :
46+ toolchain : stable
47+ profile : minimal
48+
49+ - name : Build stacky-wasm-interpreter (stc_interpreter)
50+ working-directory : src_interpreter
51+ run : |
52+ rustup target add wasm32-unknown-unknown
53+ cargo install wasm-pack --version 0.10.4
54+ wasm-pack build --release --target web --out-dir ../pkg
55+
4056 - name : Build
4157 run : npm run build
58+
4259 - name : Setup Pages
4360 uses : actions/configure-pages@v5
61+
4462 - name : Upload artifact
4563 uses : actions/upload-pages-artifact@v4
4664 with :
4765 # Upload dist folder
4866 path : ' ./dist'
67+
4968 - name : Deploy to GitHub Pages
5069 id : deployment
5170 uses : actions/deploy-pages@v4
Original file line number Diff line number Diff line change @@ -5,8 +5,8 @@ edition = "2024"
55
66[dependencies ]
77wasm-bindgen = " 0.2"
8- stacky = { path = " ../../stacky" }
98console_error_panic_hook = " 0.1.7"
9+ stacky = " 0.1.0"
1010
1111[lib ]
1212crate-type = [" cdylib" ]
You can’t perform that action at this time.
0 commit comments