Skip to content

Commit

Permalink
Add actions step to install wasm-pack
Browse files Browse the repository at this point in the history
  • Loading branch information
HHogg committed Feb 24, 2024
1 parent 040148c commit 4f44f3c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ jobs:
run: yarn
- name: 'Install dependencies: Rust'
run: cargo fetch
- name: 'Install dependencies: wasm-pack'
run: cargo install wasm-pack
- name: 'Install dependencies: wasm32-unknown-unknown'
run: rustup target add wasm32-unknown-unknown
- name: 'Build'
run: yarn build
- name: 'Lint'
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
### Setup

1. [Install Rust (recommended through rustup)](https://rustup.rs/)
1. [Install wasm-pack](https://rustwasm.github.io/wasm-pack/installer/)
1. [Install Node (recommended through NVM)](https://github.com/nvm-sh/nvm)
1. Install Yarn -> `npm i yarn -g`
1. Clone this repo -> `git clone [email protected]:HHogg/hogg.io.git`
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"lint:rust": "yarn lint:rust:clippy && yarn lint:rust:fmt",
"lint:rust:clippy": "cargo clippy --all-targets --all-features -- -D warnings",
"lint:rust:fmt": "cargo fmt --all -- --check",
"test": "yarn test:rust",
"test:rust": "cargo watch -x \"test -- --test-threads=1\"",
"test:rust:clean": "cargo insta test --unreferenced=delete",
"test:rust:review": "cargo insta review --include-ignored",
Expand Down

0 comments on commit 4f44f3c

Please sign in to comment.