Skip to content

Commit

Permalink
doc: add go (non-cgo), tinygo, and wasm instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
coolaj86 committed Jan 18, 2024
1 parent b2dbb5e commit 8fdf473
Showing 1 changed file with 31 additions and 1 deletion.
32 changes: 31 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,34 @@
# Build & Test
# Build & Test Go / TinyGo

```sh
curl https://webi.sh/go | sh
source ~/.config/envman/PATH.env

go build ./cmd/chiabls
```

```sh
curl https://webi.sh/tinygo | sh
source ~/.config/envman/PATH.env

tinygo build --tags generic ./cmd/chiabls
```

## WASM

```sh
curl https://webi.sh/rust | sh
curl https://webi.sh/tinygo | sh
source ~/.config/envman/PATH.env

cargo install wasm-opt

tinygo build --tags generic \
-o chiabls.wasm -target=wasi \
./cmd/chiabls
```

# Build & Test CGO

```sh
git submodule init
Expand Down

0 comments on commit 8fdf473

Please sign in to comment.