Skip to content

Commit 47d3f00

Browse files
committed
fix: publish.yml
1 parent 8086400 commit 47d3f00

File tree

3 files changed

+22
-1
lines changed

3 files changed

+22
-1
lines changed

.github/workflows/publish.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff 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
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

src_interpreter/Cargo.lock

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src_interpreter/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ edition = "2024"
55

66
[dependencies]
77
wasm-bindgen = "0.2"
8-
stacky = { path = "../../stacky" }
98
console_error_panic_hook = "0.1.7"
9+
stacky = "0.1.0"
1010

1111
[lib]
1212
crate-type = ["cdylib"]

0 commit comments

Comments
 (0)