Skip to content

Commit

Permalink
basic working WebAssmembly.instantiate, only pure Wasm with i32, i64,…
Browse files Browse the repository at this point in the history
… f32, and f64
  • Loading branch information
lastmjs committed Jan 29, 2024
1 parent e71557f commit b5bca5a
Show file tree
Hide file tree
Showing 18 changed files with 3,290 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ jobs:
run: |
EXAMPLE_DIRECTORIES=$(cat << END
[
"examples/apollo_server",
"examples/async_await",
"examples/audio_recorder",
"examples/bitcoin",
Expand Down Expand Up @@ -127,6 +128,7 @@ jobs:
"examples/robust_imports",
"examples/simple_erc20",
"examples/simple_user_accounts",
"examples/sqlite",
"examples/stable_b_tree_map_instruction_threshold",
"examples/stable_memory",
"examples/stable_structures",
Expand Down Expand Up @@ -210,7 +212,7 @@ jobs:
with:
node-version: 18
- if: ${{ needs.release-candidate-deploy.outputs.should_run_tests }}
run: DFX_VERSION=0.15.2 sh -ci "$(curl -fsSL https://sdk.dfinity.org/install.sh)"
run: DFX_VERSION=0.15.3-largewasm.0 sh -ci "$(curl -fsSL https://sdk.dfinity.org/install.sh)"
- if: ${{ needs.release-candidate-deploy.outputs.should_run_tests }}
uses: actions/cache@v3
with:
Expand Down
90 changes: 90 additions & 0 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 examples/web_assembly/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.azle
.dfx
node_modules
12 changes: 12 additions & 0 deletions examples/web_assembly/dfx.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"canisters": {
"web_assembly": {
"type": "custom",
"main": "src/index.ts",
"candid": "src/index.did",
"build": "npx azle web_assembly",
"wasm": ".azle/web_assembly/web_assembly.wasm",
"gzip": true
}
}
}
Loading

0 comments on commit b5bca5a

Please sign in to comment.