all: support Go 1.22
This adds initial support for Go 1.22. Not all new features are supported yet.
Этот коммит содержится в:
родитель
e9003e2deb
коммит
38a80b45d3
2 изменённых файлов: 11 добавлений и 2 удалений
|
@ -105,6 +105,13 @@ jobs:
|
||||||
- test-linux:
|
- test-linux:
|
||||||
llvm: "15"
|
llvm: "15"
|
||||||
resource_class: large
|
resource_class: large
|
||||||
|
test-llvm16-go122:
|
||||||
|
docker:
|
||||||
|
- image: golang:1.22-rc-bullseye
|
||||||
|
steps:
|
||||||
|
- test-linux:
|
||||||
|
llvm: "16"
|
||||||
|
resource_class: large
|
||||||
test-llvm17-go121:
|
test-llvm17-go121:
|
||||||
docker:
|
docker:
|
||||||
- image: golang:1.21-bullseye
|
- image: golang:1.21-bullseye
|
||||||
|
@ -119,5 +126,7 @@ workflows:
|
||||||
# This tests our lowest supported versions of Go and LLVM, to make sure at
|
# This tests our lowest supported versions of Go and LLVM, to make sure at
|
||||||
# least the smoke tests still pass.
|
# least the smoke tests still pass.
|
||||||
- test-llvm15-go118
|
- test-llvm15-go118
|
||||||
|
# This tests the upcoming Go 1.22 support.
|
||||||
|
- test-llvm16-go122
|
||||||
# This tests the upcoming LLVM 17 support.
|
# This tests the upcoming LLVM 17 support.
|
||||||
- test-llvm17-go121
|
- test-llvm17-go121
|
||||||
|
|
|
@ -27,10 +27,10 @@ func NewConfig(options *compileopts.Options) (*compileopts.Config, error) {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
if major != 1 || minor < 18 || minor > 21 {
|
if major != 1 || minor < 18 || minor > 22 {
|
||||||
// Note: when this gets updated, also update the Go compatibility matrix:
|
// Note: when this gets updated, also update the Go compatibility matrix:
|
||||||
// https://github.com/tinygo-org/tinygo-site/blob/dev/content/docs/reference/go-compat-matrix.md
|
// https://github.com/tinygo-org/tinygo-site/blob/dev/content/docs/reference/go-compat-matrix.md
|
||||||
return nil, fmt.Errorf("requires go version 1.18 through 1.21, got go%d.%d", major, minor)
|
return nil, fmt.Errorf("requires go version 1.18 through 1.22, got go%d.%d", major, minor)
|
||||||
}
|
}
|
||||||
|
|
||||||
return &compileopts.Config{
|
return &compileopts.Config{
|
||||||
|
|
Загрузка…
Создание таблицы
Сослаться в новой задаче