Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
groups:
everything:
patterns:
- "*"
32 changes: 16 additions & 16 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,16 @@ jobs:
os: [ubuntu-latest, macos-latest, windows-2025]
go: ['1.20.x', '1.21.x', '1.22.x', '1.23.x', '1.24.x']
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v7

# first download wasmtime's last static library build using python
- uses: actions/setup-python@v2
- uses: actions/setup-python@v7
with:
python-version: 3.8
python-version: 3.x
- run: python ci/download-wasmtime.py

# then run our go tests ...
- uses: actions/setup-go@v2
- uses: actions/setup-go@v7
with:
go-version: ${{ matrix.go }}
- run: go vet
Expand Down Expand Up @@ -80,26 +80,26 @@ jobs:
coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v2
- uses: actions/checkout@v7
- uses: actions/setup-python@v7
with:
python-version: 3.8
python-version: 3.x
- run: python ci/download-wasmtime.py
- uses: actions/setup-go@v2
- uses: actions/setup-go@v7
with:
go-version: '1.20'
- run: go test -coverprofile cover.out ./...
- run: go tool cover -html=cover.out -o coverage.html
- uses: actions/upload-artifact@v4
- uses: actions/upload-artifact@v7
with:
name: coverage
path: coverage.html

fmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v2
- uses: actions/checkout@v7
- uses: actions/setup-go@v7
with:
go-version: '1.20'
# https://stackoverflow.com/questions/42510140/check-format-for-continous-integration
Expand All @@ -109,17 +109,17 @@ jobs:
needs: [coverage]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
- uses: actions/checkout@v7
- uses: actions/download-artifact@v8
with:
name: coverage
path: coverage
- run: find .

- if: github.event_name == 'push' && github.ref == 'refs/heads/main'
uses: actions/configure-pages@v5
uses: actions/configure-pages@v6
- if: github.event_name == 'push' && github.ref == 'refs/heads/main'
uses: actions/upload-pages-artifact@v3
uses: actions/upload-pages-artifact@v5
with:
path: "coverage"

Expand All @@ -136,4 +136,4 @@ jobs:
url: ${{ steps.deployment.outputs.page_url }}
steps:
- id: deployment
uses: actions/deploy-pages@v4
uses: actions/deploy-pages@v5
2 changes: 1 addition & 1 deletion BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ go_library(
],
"//conditions:default": [],
}),
importpath = "github.com/bytecodealliance/wasmtime-go/v50",
importpath = "github.com/bytecodealliance/wasmtime-go/v51",
visibility = ["//visibility:public"],
)

Expand Down
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
<a href="https://github.com/bytecodealliance/wasmtime-go/actions?query=workflow%3ACI">
<img src="https://github.com/bytecodealliance/wasmtime-go/workflows/CI/badge.svg" alt="CI status"/>
</a>
<a href="https://pkg.go.dev/github.com/bytecodealliance/wasmtime-go/v50">
<img src="https://godoc.org/github.com/bytecodealliance/wasmtime-go/v50?status.svg" alt="Documentation"/>
<a href="https://pkg.go.dev/github.com/bytecodealliance/wasmtime-go/v51">
<img src="https://godoc.org/github.com/bytecodealliance/wasmtime-go/v51?status.svg" alt="Documentation"/>
</a>
<a href="https://bytecodealliance.github.io/wasmtime-go/coverage.html">
<img src="https://img.shields.io/badge/coverage-main-green" alt="Code Coverage"/>
Expand All @@ -25,7 +25,7 @@
## Installation

```sh
go get -u github.com/bytecodealliance/wasmtime-go/v50@v50.0.1
go get -u github.com/bytecodealliance/wasmtime-go/v51@v51.0.1
```

Be sure to check out the [API documentation][api]!
Expand All @@ -39,16 +39,16 @@ need to arrange to build Wasmtime and use `CGO_*` env vars to compile correctly.

This project has been tested with Go 1.13 or later.

[api]: https://pkg.go.dev/github.com/bytecodealliance/wasmtime-go/v50
[api]: https://pkg.go.dev/github.com/bytecodealliance/wasmtime-go/v51
[wasmtime]: https://github.com/bytecodealliance/wasmtime

If you are a bazel user, add following to your WORKSPACE file:

```
go_repository(
name = "com_github_bytecodealliance_wasmtime_go",
importpath = "github.com/bytecodealliance/wasmtime-go/v50",
version = "v50.0.1",
importpath = "github.com/bytecodealliance/wasmtime-go/v51",
version = "v51.0.1",
)
```

Expand All @@ -61,7 +61,7 @@ package main

import (
"fmt"
"github.com/bytecodealliance/wasmtime-go/v50"
"github.com/bytecodealliance/wasmtime-go/v51"
)

func main() {
Expand Down Expand Up @@ -179,8 +179,8 @@ Once merged checkout `main` and do:
$ rm .gitignore
$ python3 ci/download-wasmtime.py
$ git add .
$ git commit -m 'v50.0.0 release artifacts'
$ git tag v50.0.0
$ git commit -m 'v51.0.0 release artifacts'
$ git tag v51.0.0
```

and push up the tag
2 changes: 1 addition & 1 deletion ci/download-wasmtime.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
help='Download the minimal runtime library instead of the full one')
args = parser.parse_args()

version = 'v50.0.0'
version = 'v51.0.0'
urls = [
['wasmtime-{}-x86_64-mingw-c-api.zip', 'windows-x86_64'],
['wasmtime-{}-x86_64-linux-c-api.tar.xz', 'linux-x86_64'],
Expand Down
2 changes: 1 addition & 1 deletion ci/test-minimal-runtime/create_cwasm.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"log"
"os"

wasmtime "github.com/bytecodealliance/wasmtime-go/v50"
wasmtime "github.com/bytecodealliance/wasmtime-go/v51"
)

func main() {
Expand Down
4 changes: 2 additions & 2 deletions ci/test-minimal-runtime/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module test-minimal-runtime
go 1.18

require (
github.com/bytecodealliance/wasmtime-go/v50 v50.0.0
github.com/bytecodealliance/wasmtime-go/v51 v51.0.0
github.com/stretchr/testify v1.8.0
)

Expand All @@ -14,4 +14,4 @@ require (
gopkg.in/yaml.v3 v3.0.1 // indirect
)

replace github.com/bytecodealliance/wasmtime-go/v50 => ../../
replace github.com/bytecodealliance/wasmtime-go/v51 => ../../
4 changes: 2 additions & 2 deletions ci/test-minimal-runtime/go.sum
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
github.com/bytecodealliance/wasmtime-go/v50 v50.0.0 h1:FoqiqURsYH+MN4pQ7qJDw1oBhi/CEI6p2cTVPYvUwZM=
github.com/bytecodealliance/wasmtime-go/v50 v50.0.0/go.mod h1:EhGDFKNmDpLc6l4Cq+U2y8zu3NM6Uiek+He4yebZFHs=
github.com/bytecodealliance/wasmtime-go/v51 v51.0.0 h1:FoqiqURsYH+MN4pQ7qJDw1oBhi/CEI6p2cTVPYvUwZM=
github.com/bytecodealliance/wasmtime-go/v51 v51.0.0/go.mod h1:EhGDFKNmDpLc6l4Cq+U2y8zu3NM6Uiek+He4yebZFHs=
github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E=
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
Expand Down
2 changes: 1 addition & 1 deletion ci/test-minimal-runtime/min_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (

"github.com/stretchr/testify/require"

wasmtime "github.com/bytecodealliance/wasmtime-go/v50"
wasmtime "github.com/bytecodealliance/wasmtime-go/v51"
)

func TestMinimalRuntime(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion ci/test-minimal-runtime/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ go run create_cwasm.go
DOWNLOAD_SCRIPT="$(pwd)/../download-wasmtime.py"
go mod vendor
(
cd vendor/github.com/bytecodealliance/wasmtime-go/v50
cd vendor/github.com/bytecodealliance/wasmtime-go/v51
rm -f wat2wasm.go wasi.go *_feat_*.go *_feats_*.go
python3 "$DOWNLOAD_SCRIPT" --min
)
Expand Down
2 changes: 1 addition & 1 deletion example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"strings"
"time"

"github.com/bytecodealliance/wasmtime-go/v50"
"github.com/bytecodealliance/wasmtime-go/v51"
)

// Example of limiting a WebAssembly function's runtime using "fuel consumption".
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/bytecodealliance/wasmtime-go/v50
module github.com/bytecodealliance/wasmtime-go/v51

go 1.18

Expand Down
20 changes: 10 additions & 10 deletions includebuild.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ import (
// included in vendored dependencies.
// Cf. https://github.com/golang/go/issues/26366

_ "github.com/bytecodealliance/wasmtime-go/v50/build/include"
_ "github.com/bytecodealliance/wasmtime-go/v50/build/include/wasmtime"
_ "github.com/bytecodealliance/wasmtime-go/v50/build/include/wasmtime/component"
_ "github.com/bytecodealliance/wasmtime-go/v50/build/include/wasmtime/component/types"
_ "github.com/bytecodealliance/wasmtime-go/v50/build/include/wasmtime/types"
_ "github.com/bytecodealliance/wasmtime-go/v50/build/linux-aarch64"
_ "github.com/bytecodealliance/wasmtime-go/v50/build/linux-x86_64"
_ "github.com/bytecodealliance/wasmtime-go/v50/build/macos-aarch64"
_ "github.com/bytecodealliance/wasmtime-go/v50/build/macos-x86_64"
_ "github.com/bytecodealliance/wasmtime-go/v50/build/windows-x86_64"
_ "github.com/bytecodealliance/wasmtime-go/v51/build/include"
_ "github.com/bytecodealliance/wasmtime-go/v51/build/include/wasmtime"
_ "github.com/bytecodealliance/wasmtime-go/v51/build/include/wasmtime/component"
_ "github.com/bytecodealliance/wasmtime-go/v51/build/include/wasmtime/component/types"
_ "github.com/bytecodealliance/wasmtime-go/v51/build/include/wasmtime/types"
_ "github.com/bytecodealliance/wasmtime-go/v51/build/linux-aarch64"
_ "github.com/bytecodealliance/wasmtime-go/v51/build/linux-x86_64"
_ "github.com/bytecodealliance/wasmtime-go/v51/build/macos-aarch64"
_ "github.com/bytecodealliance/wasmtime-go/v51/build/macos-x86_64"
_ "github.com/bytecodealliance/wasmtime-go/v51/build/windows-x86_64"
)
Loading