Skip to content
This repository was archived by the owner on Aug 6, 2024. It is now read-only.

Commit 9b2cbbc

Browse files
committed
Initial
0 parents  commit 9b2cbbc

File tree

2 files changed

+58
-0
lines changed

2 files changed

+58
-0
lines changed

.github/workflows/release.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- "*"
7+
8+
jobs:
9+
binaries:
10+
runs-on: ubuntu-20.04
11+
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v3.0.2
15+
16+
- name: Build
17+
run: |
18+
git clone https://github.com/emscripten-core/emsdk.git --depth 1 --branch "$EMSDK_TAG"
19+
cd emsdk
20+
./emsdk install latest
21+
./emsdk activate latest
22+
source ./emsdk_env.sh
23+
cd ..
24+
git clone --depth 1 --branch "$Z3_TAG" https://github.com/Z3Prover/z3
25+
cd z3/src/api/js/
26+
npm i
27+
npm run build-ts
28+
npm run build-wasm
29+
(cd build/ && tar -czf ../z3.tar.gz *)
30+
env:
31+
EMSDK_TAG: "3.1.9"
32+
Z3_TAG: "z3-4.8.15"
33+
34+
- name: Release
35+
uses: ncipollo/release-action@v1.10.0
36+
with:
37+
artifacts: "z3/src/api/js/z3.tar.gz"
38+
token: ${{ secrets.GITHUB_TOKEN }}

README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# z3-wasm
2+
3+
A simple Z3 SMT2 analyzer, ran entirely in your browser using WebAssembly.
4+
5+
## Using
6+
7+
Grab the pre-built artifacts from the releases. For how to use them, check out the official binding [notes](https://github.com/Z3Prover/z3/blob/master/src/api/js/PUBLISHED_README.md). The included test cases are a great starting point.
8+
9+
## Building
10+
11+
The [official guide](https://github.com/Z3Prover/z3/tree/master/src/api/js) explains this well. You can also check the GitHub workflow.
12+
13+
For Docker Ubuntu 22.04, you will need the following pre-setup:
14+
15+
```bash
16+
apt update
17+
apt install build-essential git python3
18+
ln /usr/bin/python3 /usr/bin/python
19+
```
20+

0 commit comments

Comments
 (0)