Skip to content

Commit

Permalink
Update wasmtime to 30.0.0 (#241)
Browse files Browse the repository at this point in the history
* Update wasmtime to 30.0.0

Also bump the version of this module.

* Try using windows-2025 runners

* Try more go versions

* Try using dev-tag

* Update to 30.0.2 artifacts
  • Loading branch information
alexcrichton authored Feb 25, 2025
1 parent c22498c commit e3d52fb
Show file tree
Hide file tree
Showing 7 changed files with 26 additions and 26 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
go: ['1.20.x', '1.21.x']
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

Expand Down Expand Up @@ -51,27 +51,27 @@ jobs:
bazelisk build --subcommands=pretty_print --verbose_failures :go_default_library
bazelisk test --subcommands=pretty_print --verbose_failures :go_default_test
# TODO: need to fix bazel tests
if: matrix.os != 'windows-latest' && false
if: runner.os != 'Windows' && false
- name: Ready msys2
uses: msys2/setup-msys2@v2
with:
msystem: MINGW64
update: true
install: git mingw-w64-x86_64-toolchain
path-type: inherit
if: matrix.os == 'windows-latest'
if: runner.os == 'Windows'
- name: Test bazel build on Windows
shell: msys2 {0}
run: |
go get github.com/bazelbuild/bazelisk
bazelisk build --subcommands=pretty_print --verbose_failures --compiler=mingw-gcc :go_default_library
bazelisk test --subcommands=pretty_print --verbose_failures --compiler=mingw-gcc :go_default_test
# TODO: need to reenable when MinGW shenanigans are fixed
if: matrix.os == 'windows-latest' && false
if: runner.os == 'Windows' && false
- name: Test vendoring on *nix
shell: bash
run: ./ci/test-vendoring.sh
if: matrix.os != 'windows-latest'
if: runner.os != 'Windows'

coverage:
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ go_library(
],
"//conditions:default": [],
}),
importpath = "github.com/bytecodealliance/wasmtime-go/v29",
importpath = "github.com/bytecodealliance/wasmtime-go/v30",
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/v29">
<img src="https://godoc.org/github.com/bytecodealliance/wasmtime-go/v29?status.svg" alt="Documentation"/>
<a href="https://pkg.go.dev/github.com/bytecodealliance/wasmtime-go/v30">
<img src="https://godoc.org/github.com/bytecodealliance/wasmtime-go/v30?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/v29@v29.0.0
go get -u github.com/bytecodealliance/wasmtime-go/v30@v30.0.0
```

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/v29
[api]: https://pkg.go.dev/github.com/bytecodealliance/wasmtime-go/v30
[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/v29",
version = "v29.0.0",
importpath = "github.com/bytecodealliance/wasmtime-go/v30",
version = "v30.0.0",
)
```

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

import (
"fmt"
"github.com/bytecodealliance/wasmtime-go/v29"
"github.com/bytecodealliance/wasmtime-go/v30"
)

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 'v29.0.0 release artifacts'
$ git tag v29.0.0
$ git commit -m 'v30.0.0 release artifacts'
$ git tag v30.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 @@ -10,7 +10,7 @@
import glob


version = 'v29.0.1'
version = 'v30.0.2'
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 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/v29"
"github.com/bytecodealliance/wasmtime-go/v30"
)

// 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/v29
module github.com/bytecodealliance/wasmtime-go/v30

go 1.18

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

_ "github.com/bytecodealliance/wasmtime-go/v29/build/include"
_ "github.com/bytecodealliance/wasmtime-go/v29/build/include/wasmtime"
_ "github.com/bytecodealliance/wasmtime-go/v29/build/linux-aarch64"
_ "github.com/bytecodealliance/wasmtime-go/v29/build/linux-x86_64"
_ "github.com/bytecodealliance/wasmtime-go/v29/build/macos-aarch64"
_ "github.com/bytecodealliance/wasmtime-go/v29/build/macos-x86_64"
_ "github.com/bytecodealliance/wasmtime-go/v29/build/windows-x86_64"
_ "github.com/bytecodealliance/wasmtime-go/v30/build/include"
_ "github.com/bytecodealliance/wasmtime-go/v30/build/include/wasmtime"
_ "github.com/bytecodealliance/wasmtime-go/v30/build/linux-aarch64"
_ "github.com/bytecodealliance/wasmtime-go/v30/build/linux-x86_64"
_ "github.com/bytecodealliance/wasmtime-go/v30/build/macos-aarch64"
_ "github.com/bytecodealliance/wasmtime-go/v30/build/macos-x86_64"
_ "github.com/bytecodealliance/wasmtime-go/v30/build/windows-x86_64"
)

0 comments on commit e3d52fb

Please sign in to comment.