mirror of
https://github.com/Z3Prover/z3
synced 2025-04-23 00:55:31 +00:00
Add high level bindings for js (#6048)
* [Draft] Added unfinished code for high level bindings for js * * Rewrote structure of js api files * Added more high level apis * Minor fixes * Fixed wasm github action * Fix JS test * Removed ContextOptions type * * Added Ints to JS Api * Added tests to JS Api * Added run-time checks for contexts * Removed default contexts * Merged Context and createContext so that the api behaves the sames as in other constructors * Added a test for Solver * Added Reals * Added classes for IntVals and RealVals * Added abillity to specify logic for solver * Try to make CI tests not fail * Changed APIs after a round of review * Fix test * Added BitVectors * Made sort into getter * Added initial JS docs * Added more coercible types * Removed done TODOs
This commit is contained in:
parent
3d00d1d56b
commit
7fdcbbaee9
37 changed files with 15973 additions and 643 deletions
10
.github/workflows/wasm-release.yml
vendored
10
.github/workflows/wasm-release.yml
vendored
|
@ -23,8 +23,8 @@ jobs:
|
|||
- name: Setup node
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 'lts/*'
|
||||
registry-url: 'https://registry.npmjs.org'
|
||||
node-version: "lts/*"
|
||||
registry-url: "https://registry.npmjs.org"
|
||||
|
||||
- name: Prepare for publish
|
||||
run: |
|
||||
|
@ -37,13 +37,13 @@ jobs:
|
|||
with:
|
||||
no-install: true
|
||||
version: ${{env.EM_VERSION}}
|
||||
actions-cache-folder: 'emsdk-cache'
|
||||
actions-cache-folder: "emsdk-cache"
|
||||
|
||||
- name: Install dependencies
|
||||
run: npm ci
|
||||
|
||||
- name: Build TypeScript
|
||||
run: npm run build-ts
|
||||
run: npm run build:ts
|
||||
|
||||
- name: Build wasm
|
||||
run: |
|
||||
|
@ -52,7 +52,7 @@ jobs:
|
|||
source $(dirname $(which emsdk))/emsdk_env.sh
|
||||
which node
|
||||
which clang++
|
||||
npm run build-wasm
|
||||
npm run build:wasm
|
||||
|
||||
- name: Test
|
||||
run: npm test
|
||||
|
|
10
.github/workflows/wasm.yml
vendored
10
.github/workflows/wasm.yml
vendored
|
@ -2,7 +2,7 @@ name: WebAssembly Build
|
|||
|
||||
on:
|
||||
push:
|
||||
branches: [ master ]
|
||||
branches: [master]
|
||||
pull_request:
|
||||
|
||||
defaults:
|
||||
|
@ -23,20 +23,20 @@ jobs:
|
|||
- name: Setup node
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 'lts/*'
|
||||
node-version: "lts/*"
|
||||
|
||||
- name: Setup emscripten
|
||||
uses: mymindstorm/setup-emsdk@v11
|
||||
with:
|
||||
no-install: true
|
||||
version: ${{env.EM_VERSION}}
|
||||
actions-cache-folder: 'emsdk-cache'
|
||||
actions-cache-folder: "emsdk-cache"
|
||||
|
||||
- name: Install dependencies
|
||||
run: npm ci
|
||||
|
||||
- name: Build TypeScript
|
||||
run: npm run build-ts
|
||||
run: npm run build:ts
|
||||
|
||||
- name: Build wasm
|
||||
run: |
|
||||
|
@ -45,7 +45,7 @@ jobs:
|
|||
source $(dirname $(which emsdk))/emsdk_env.sh
|
||||
which node
|
||||
which clang++
|
||||
npm run build-wasm
|
||||
npm run build:wasm
|
||||
|
||||
- name: Test
|
||||
run: npm test
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue