Skip to content

Commit

Permalink
update CI versions (#81)
Browse files Browse the repository at this point in the history
* update CI versions

* update wazero
  • Loading branch information
zetaab authored Oct 26, 2023
1 parent 4171a60 commit b2a065a
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 19 deletions.
25 changes: 13 additions & 12 deletions .github/workflows/commit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,16 @@ jobs:
strategy:
matrix:
go-version: # Note: Go only supports 2 versions: https://go.dev/doc/devel/release#policy
- "1.19"
- "1.20"
- "1.21"

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: actions/setup-go@v3
- uses: actions/setup-go@v4
with: # not cache: true as we also need to cache golint
go-version: ${{ matrix.go-version }}
cache: false

- uses: actions/cache@v3
with:
Expand All @@ -46,7 +47,7 @@ jobs:

- name: "Set up wat2wasm"
run: | # Needed for testdata. wabt includes wat2wasm.
wabt_version=1.0.32
wabt_version=1.0.33
wabt_url=https://github.com/WebAssembly/wabt/releases/download/${wabt_version}/wabt-${wabt_version}-ubuntu.tar.gz
curl -sSL ${wabt_url} | tar --strip-components 2 -C /usr/local/bin -xzf - wabt-${wabt_version}/bin/wat2wasm
Expand All @@ -59,15 +60,15 @@ jobs:
strategy:
matrix:
go-version: # Note: Go only supports 2 versions: https://go.dev/doc/devel/release#policy
- "1.19"
- "1.20"
- "1.21"

steps:
- name: "Checkout"
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: "Set up Go"
uses: actions/setup-go@v3
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}
cache: true
Expand All @@ -83,24 +84,24 @@ jobs:
runs-on: ubuntu-22.04
steps:
- name: "Checkout"
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: "Set up Go"
uses: actions/setup-go@v3
uses: actions/setup-go@v4
with:
go-version: "1.20"
go-version: "1.21"
cache: true

- name: "Set up TinyGo"
uses: acifani/setup-tinygo@v1
with:
tinygo-version: 0.27.0
tinygo-version: 0.30.0

- name: "Cache TinyGo build"
uses: actions/cache@v3
with:
path: ~/.cache/tinygo
key: tinygo-0.27.0
key: tinygo-0.30.0

- name: "Build TCK"
run: make tck
2 changes: 1 addition & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This is built using - https://golangci-lint.run/usage/configuration/
run:
go: '1.19'
go: '1.21'
modules-download-mode: readonly
tests: false

6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
gofumpt := mvdan.cc/gofumpt@v0.4.0
gosimports := github.com/rinchsan/gosimports/cmd/[email protected].7
golangci_lint := github.com/golangci/golangci-lint/cmd/golangci-lint@v1.51.2
gofumpt := mvdan.cc/gofumpt@v0.5.0
gosimports := github.com/rinchsan/gosimports/cmd/[email protected].8
golangci_lint := github.com/golangci/golangci-lint/cmd/golangci-lint@v1.55.0

.PHONY: testdata
testdata:
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ module github.com/http-wasm/http-wasm-host-go

go 1.19

require github.com/tetratelabs/wazero v1.2.0
require github.com/tetratelabs/wazero v1.5.0
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
github.com/tetratelabs/wazero v1.2.0 h1:I/8LMf4YkCZ3r2XaL9whhA0VMyAvF6QE+O7rco0DCeQ=
github.com/tetratelabs/wazero v1.2.0/go.mod h1:wYx2gNRg8/WihJfSDxA1TIL8H+GkfLYm+bIfbblu9VQ=
github.com/tetratelabs/wazero v1.5.0 h1:Yz3fZHivfDiZFUXnWMPUoiW7s8tC1sjdBtlJn08qYa0=
github.com/tetratelabs/wazero v1.5.0/go.mod h1:0U0G41+ochRKoPKCJlh0jMg1CHkyfK8kDqiirMmKY8A=

0 comments on commit b2a065a

Please sign in to comment.