Skip to content
This repository was archived by the owner on Apr 24, 2025. It is now read-only.

Commit ae3c5ff

Browse files
authored
Update for TinyGo 0.16.0 release (#97)
* Update for TinyGo 0.16.0 release Signed-off-by: mathetake <[email protected]> * use latest tinygo image Signed-off-by: mathetake <[email protected]> * fix Signed-off-by: mathetake <[email protected]>
1 parent 6380f51 commit ae3c5ff

File tree

3 files changed

+6
-18
lines changed

3 files changed

+6
-18
lines changed

.github/workflows/workflow.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,13 @@ jobs:
3232
name: build examples
3333
runs-on: ubuntu-latest
3434
container:
35-
image: tinygo/tinygo-dev:latest # TODO: use the tagged `tinygo/tinygo:0.xx.x` image after the next release
35+
image: tinygo/tinygo:latest
3636
steps:
3737
- name: checkout
3838
uses: actions/checkout@v2
3939

4040
- name: build examples
41-
run: make build.examples
41+
run: find ./examples -type f -name "main.go" | xargs -Ip tinygo build -o p.wasm -scheduler=none -target=wasi -wasm-abi=generic p
4242

4343
- name: upload wasm-binaries
4444
uses: actions/upload-artifact@v2

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ build.examples:
1616
find ./examples -type f -name "main.go" | xargs -Ip tinygo build -o p.wasm -scheduler=none -target=wasi -wasm-abi=generic p
1717

1818
build.examples.docker:
19-
docker run -it -w /tmp/proxy-wasm-go -v $(shell pwd):/tmp/proxy-wasm-go tinygo/tinygo-dev:latest /bin/bash -c \
19+
docker run -it -w /tmp/proxy-wasm-go -v $(shell pwd):/tmp/proxy-wasm-go tinygo/tinygo:latest /bin/bash -c \
2020
'find /tmp/proxy-wasm-go/examples/ -type f -name "main.go" | xargs -Ip tinygo build -o p.wasm -scheduler=none -target=wasi -wasm-abi=generic p'
2121

2222
lint:

README.md

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -35,22 +35,10 @@ func (ctx *metricHttpContext) OnHttpRequestHeaders(int, bool) types.Action {
3535

3636
### requirements
3737

38-
proxy-wasm-go-sdk depends on TinyGo's latest [dev branch](https://github.com/tinygo-org/tinygo/tree/dev) which supports WASI target([tinygo-org/tinygo#1373](https://github.com/tinygo-org/tinygo/pull/1373))
39-
and has yet to be tagged.
40-
41-
In order to install that version of TinyGo, simply run (Ubuntu/Debian):
42-
43-
```shell
44-
# this is the latest commit as of Oct 29, 2020
45-
wget https://20372-136505169-gh.circle-artifacts.com/0/tmp/tinygo_amd64.deb
46-
dpkg -i tinygo_amd64.deb
47-
```
48-
49-
Alternatively, you can use the pre-built docker container `tinygo/tinygo-dev:latest` for any platform.
50-
51-
TinyGo's official tagged release of WASI target will come soon, and after that you could
52-
just follow https://tinygo.org/getting-started/ to install the requirement on any platform. Stay tuned!
38+
proxy-wasm-go-sdk depends on TinyGo's [WASI](https://github.com/WebAssembly/WASI) (WebAssembly System Interface) target
39+
which is introduced in [v0.16.0](https://github.com/tinygo-org/tinygo/releases/tag/v0.16.0).
5340

41+
Please follow the official instruction [here](https://tinygo.org/getting-started/).
5442

5543
### compatible ABI / Envoy builds (verified on CI)
5644

0 commit comments

Comments
 (0)