Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inline WASM in @nucypher/nucypher-core NPM package #83

Merged
merged 6 commits into from
Oct 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions .github/workflows/nucypher-core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,31 @@ jobs:
with:
cmd: --cwd nucypher-core-wasm/examples/node test

rebundle-wasm:
runs-on: ubuntu-latest
strategy:
matrix:
rust:
- stable
target:
- wasm32-unknown-unknown

steps:
- uses: actions/checkout@v1
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust }}
target: ${{ matrix.target }}
override: true
- run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
- uses: bahmutov/npm-install@v1
with:
working-directory: nucypher-core-wasm-bundler
node-version: '16.x'
- run: npm run build
working-directory: nucypher-core-wasm-bundler

python-test:
runs-on: ubuntu-latest
strategy:
Expand Down
6 changes: 3 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions nucypher-core-wasm-bundler/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
dist
node_modules
*log
675 changes: 675 additions & 0 deletions nucypher-core-wasm-bundler/LICENSE

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions nucypher-core-wasm-bundler/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# nucypher-core-wasm-bundler

```bash
npm install
npm run build
npm run build:minify
```
Loading
Loading