deps: upgrades to TinyGo v0.28.1 (#1512)

Signed-off-by: Adrian Cole <adrian@tetrate.io>
This commit is contained in:
Crypt Keeper
2023-06-12 12:21:00 +08:00
committed by GitHub
parent 904e9a9972
commit 1e0f88bc14
9 changed files with 5 additions and 9 deletions

View File

@@ -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:

View File

@@ -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

View File

@@ -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.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -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