Skip to content

Commit 1c21223

Browse files
committed
Update everything
1 parent ce60de3 commit 1c21223

File tree

7 files changed

+1470
-3881
lines changed

7 files changed

+1470
-3881
lines changed

.github/workflows/deploy.yaml

+38-17
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,64 @@
1-
on: [push]
1+
name: Deploy to Pages
22

3-
name: Deploy to GH Pages
3+
on:
4+
# Runs on pushes targeting the default branch
5+
push:
6+
branches: ["master"]
47

8+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
59
permissions:
610
contents: read
711
pages: write
812
id-token: write
913

14+
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
15+
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
16+
concurrency:
17+
group: "pages"
18+
cancel-in-progress: false
19+
1020
jobs:
1121
build:
1222
runs-on: ubuntu-latest
1323
steps:
14-
- uses: actions/checkout@v2
15-
- uses: actions-rs/toolchain@v1
24+
- name: Checkout
25+
uses: actions/checkout@v4
26+
27+
- uses: dtolnay/rust-toolchain@stable
1628
with:
17-
profile: minimal
18-
toolchain: nightly
29+
toolchain: "1.78.0"
1930
target: wasm32-unknown-unknown
20-
- run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
21-
- run: wasm-pack build
22-
env:
23-
RUSTUP_TOOLCHAIN: nightly
24-
- uses: actions/setup-node@v3
25-
- run: npm ci
26-
- run: npm run build -- --base="./"
31+
- name: Setup Node
32+
uses: actions/setup-node@v4
33+
with:
34+
node-version: "20"
35+
- uses: pnpm/action-setup@v3
36+
name: Install pnpm
37+
with:
38+
version: 8
39+
run_install: true
2740
- name: Setup Pages
28-
uses: actions/configure-pages@v2
41+
id: pages
42+
uses: actions/configure-pages@v5
43+
44+
- name: Create wasm package and build page
45+
run: |
46+
pnpm exec wasm-pack build
47+
pnpm build -- --base="./"
48+
2949
- name: Upload artifact
30-
uses: actions/upload-pages-artifact@v1
50+
uses: actions/upload-pages-artifact@v3
3151
with:
3252
path: dist
3353

3454
deploy:
3555
environment:
3656
name: github-pages
3757
url: ${{ steps.deployment.outputs.page_url }}
38-
runs-on: ubuntu-latest
3958
needs: build
59+
runs-on: ubuntu-latest
60+
name: Deploy
4061
steps:
4162
- name: Deploy to GitHub Pages
4263
id: deployment
43-
uses: actions/deploy-pages@v1
64+
uses: actions/deploy-pages@v4

Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ default = ["console_error_panic_hook"]
1313

1414
[dependencies]
1515
console_error_panic_hook = { version = "0.1.6", optional = true }
16-
itertools = "0.10.5"
16+
itertools = "0.12.1"
1717
phf = { version = "0.11.1", features = ["macros"] }
1818
serde = { version = "1.0.144", features = ["derive"] }
19-
serde-wasm-bindgen = "0.4.5"
19+
serde-wasm-bindgen = "0.6.5"
2020
wasm-bindgen = "0.2.83"

0 commit comments

Comments
 (0)