deps: upgrades to TinyGo v0.28.1 (#1512)
Signed-off-by: Adrian Cole <adrian@tetrate.io>
This commit is contained in:
2
.github/workflows/examples.yaml
vendored
2
.github/workflows/examples.yaml
vendored
@@ -17,7 +17,7 @@ on:
|
|||||||
|
|
||||||
env:
|
env:
|
||||||
EMSDK_VERSION: "3.1.40"
|
EMSDK_VERSION: "3.1.40"
|
||||||
TINYGO_VERSION: "0.27.0"
|
TINYGO_VERSION: "0.28.1"
|
||||||
ZIG_VERSION: "0.11.0-dev.3334+cd1417dbd"
|
ZIG_VERSION: "0.11.0-dev.3334+cd1417dbd"
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
|
|||||||
4
.github/workflows/integration.yaml
vendored
4
.github/workflows/integration.yaml
vendored
@@ -19,7 +19,7 @@ defaults:
|
|||||||
|
|
||||||
env: # Update this prior to requiring a higher minor version in go.mod
|
env: # Update this prior to requiring a higher minor version in go.mod
|
||||||
GO_VERSION: "1.20" # 1.xx == latest patch of 1.xx
|
GO_VERSION: "1.20" # 1.xx == latest patch of 1.xx
|
||||||
TINYGO_VERSION: "0.27.0"
|
TINYGO_VERSION: "0.28.1"
|
||||||
ZIG_VERSION: "0.11.0-dev.3334+cd1417dbd"
|
ZIG_VERSION: "0.11.0-dev.3334+cd1417dbd"
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
@@ -143,7 +143,7 @@ jobs:
|
|||||||
- name: Build Test Binaries
|
- name: Build Test Binaries
|
||||||
if: steps.binary-cache.outputs.cache-hit != 'true'
|
if: steps.binary-cache.outputs.cache-hit != 'true'
|
||||||
# The following list of packages is derived from:
|
# The following list of packages is derived from:
|
||||||
# https://github.com/tinygo-org/tinygo/blob/v0.27.0/Makefile#L277-L324
|
# https://github.com/tinygo-org/tinygo/blob/v0.28.1/Makefile#L281-L322
|
||||||
# Note:
|
# Note:
|
||||||
# - index/suffixarray is extremely slow, so skip it.
|
# - index/suffixarray is extremely slow, so skip it.
|
||||||
# - compress/zlib is skipped as it depends on the local files https://github.com/golang/go/blob/go1.20/src/compress/zlib/writer_test.go#L16-L30
|
# - compress/zlib is skipped as it depends on the local files https://github.com/golang/go/blob/go1.20/src/compress/zlib/writer_test.go#L16-L30
|
||||||
|
|||||||
5
examples/allocation/tinygo/testdata/greet.go
vendored
5
examples/allocation/tinygo/testdata/greet.go
vendored
@@ -27,10 +27,7 @@ func log(message string) {
|
|||||||
// _log is a WebAssembly import which prints a string (linear memory offset,
|
// _log is a WebAssembly import which prints a string (linear memory offset,
|
||||||
// byteCount) to the console.
|
// byteCount) to the console.
|
||||||
//
|
//
|
||||||
// Note: In TinyGo "//export" on a func is actually an import!
|
//go:wasmimport env log
|
||||||
//
|
|
||||||
//go:wasm-module env
|
|
||||||
//export log
|
|
||||||
func _log(ptr, size uint32)
|
func _log(ptr, size uint32)
|
||||||
|
|
||||||
// greeting gets a greeting for the name.
|
// greeting gets a greeting for the name.
|
||||||
|
|||||||
BIN
examples/allocation/tinygo/testdata/greet.wasm
vendored
BIN
examples/allocation/tinygo/testdata/greet.wasm
vendored
Binary file not shown.
BIN
examples/basic/testdata/add.wasm
vendored
BIN
examples/basic/testdata/add.wasm
vendored
Binary file not shown.
BIN
examples/cli/testdata/cli.wasm
vendored
BIN
examples/cli/testdata/cli.wasm
vendored
Binary file not shown.
Binary file not shown.
BIN
internal/integration_test/bench/testdata/case.wasm
vendored
BIN
internal/integration_test/bench/testdata/case.wasm
vendored
Binary file not shown.
@@ -89,8 +89,7 @@ import "unsafe"
|
|||||||
// random_get is a function defined on the host, specifically, the wazero
|
// random_get is a function defined on the host, specifically, the wazero
|
||||||
// program written in Go.
|
// program written in Go.
|
||||||
//
|
//
|
||||||
//go:wasm-module wasi_snapshot_preview1
|
//go:wasmimport wasi_snapshot_preview1 random_get
|
||||||
//export random_get
|
|
||||||
func random_get(ptr uintptr, size uint32) (errno uint32)
|
func random_get(ptr uintptr, size uint32) (errno uint32)
|
||||||
|
|
||||||
// main is compiled to wasm, so this is the guest. Conventionally, this ends up
|
// main is compiled to wasm, so this is the guest. Conventionally, this ends up
|
||||||
|
|||||||
Reference in New Issue
Block a user