diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 00000000..9df86501 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,10 @@ +version: 2 +updates: + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "weekly" + groups: + everything: + patterns: + - "*" diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index f9beaeb3..301c6b74 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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 @@ -80,17 +80,17 @@ 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 @@ -98,8 +98,8 @@ jobs: 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 @@ -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" @@ -136,4 +136,4 @@ jobs: url: ${{ steps.deployment.outputs.page_url }} steps: - id: deployment - uses: actions/deploy-pages@v4 + uses: actions/deploy-pages@v5 diff --git a/BUILD.bazel b/BUILD.bazel index 89cd5093..c61a89c3 100644 --- a/BUILD.bazel +++ b/BUILD.bazel @@ -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"], ) diff --git a/README.md b/README.md index e1408cc7..c4a04324 100644 --- a/README.md +++ b/README.md @@ -12,8 +12,8 @@ CI status - - Documentation + + Documentation Code Coverage @@ -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]! @@ -39,7 +39,7 @@ 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: @@ -47,8 +47,8 @@ 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", ) ``` @@ -61,7 +61,7 @@ package main import ( "fmt" - "github.com/bytecodealliance/wasmtime-go/v50" + "github.com/bytecodealliance/wasmtime-go/v51" ) func main() { @@ -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 diff --git a/ci/download-wasmtime.py b/ci/download-wasmtime.py index 3ff2fa75..92c40dda 100644 --- a/ci/download-wasmtime.py +++ b/ci/download-wasmtime.py @@ -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'], diff --git a/ci/test-minimal-runtime/create_cwasm.go b/ci/test-minimal-runtime/create_cwasm.go index 0fea3cb8..ec4155d3 100644 --- a/ci/test-minimal-runtime/create_cwasm.go +++ b/ci/test-minimal-runtime/create_cwasm.go @@ -6,7 +6,7 @@ import ( "log" "os" - wasmtime "github.com/bytecodealliance/wasmtime-go/v50" + wasmtime "github.com/bytecodealliance/wasmtime-go/v51" ) func main() { diff --git a/ci/test-minimal-runtime/go.mod b/ci/test-minimal-runtime/go.mod index 0c319c61..9296e21e 100644 --- a/ci/test-minimal-runtime/go.mod +++ b/ci/test-minimal-runtime/go.mod @@ -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 ) @@ -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 => ../../ diff --git a/ci/test-minimal-runtime/go.sum b/ci/test-minimal-runtime/go.sum index b76e6c1b..639dc7c8 100644 --- a/ci/test-minimal-runtime/go.sum +++ b/ci/test-minimal-runtime/go.sum @@ -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= diff --git a/ci/test-minimal-runtime/min_test.go b/ci/test-minimal-runtime/min_test.go index 7341e2d4..554fdaa0 100644 --- a/ci/test-minimal-runtime/min_test.go +++ b/ci/test-minimal-runtime/min_test.go @@ -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) { diff --git a/ci/test-minimal-runtime/test.sh b/ci/test-minimal-runtime/test.sh index a18dc4e4..3c3efca5 100755 --- a/ci/test-minimal-runtime/test.sh +++ b/ci/test-minimal-runtime/test.sh @@ -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 ) diff --git a/example_test.go b/example_test.go index ea7ea3a6..6438fe1f 100644 --- a/example_test.go +++ b/example_test.go @@ -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". diff --git a/go.mod b/go.mod index 288f0841..250451dc 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/bytecodealliance/wasmtime-go/v50 +module github.com/bytecodealliance/wasmtime-go/v51 go 1.18 diff --git a/includebuild.go b/includebuild.go index 31235f33..82bcceaf 100644 --- a/includebuild.go +++ b/includebuild.go @@ -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" )