mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-21 04:49:04 +00:00
ci: use Go 1.23
This commit is contained in:
committed by
Ron Evans
parent
b6c53a6f0e
commit
7e284a37fc
@@ -107,9 +107,9 @@ jobs:
|
|||||||
# "make lint" fails before go 1.21 because internal/tools/go.mod specifies packages that require go 1.21
|
# "make lint" fails before go 1.21 because internal/tools/go.mod specifies packages that require go 1.21
|
||||||
fmt-check: false
|
fmt-check: false
|
||||||
resource_class: large
|
resource_class: large
|
||||||
test-llvm18-go122:
|
test-llvm18-go123:
|
||||||
docker:
|
docker:
|
||||||
- image: golang:1.22-bullseye
|
- image: golang:1.23-bullseye
|
||||||
steps:
|
steps:
|
||||||
- test-linux:
|
- test-linux:
|
||||||
llvm: "18"
|
llvm: "18"
|
||||||
@@ -122,4 +122,4 @@ workflows:
|
|||||||
# least the smoke tests still pass.
|
# least the smoke tests still pass.
|
||||||
- test-llvm15-go119
|
- test-llvm15-go119
|
||||||
# This tests LLVM 18 support when linking against system libraries.
|
# This tests LLVM 18 support when linking against system libraries.
|
||||||
- test-llvm18-go122
|
- test-llvm18-go123
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ jobs:
|
|||||||
- name: Install Go
|
- name: Install Go
|
||||||
uses: actions/setup-go@v5
|
uses: actions/setup-go@v5
|
||||||
with:
|
with:
|
||||||
go-version: '1.22'
|
go-version: '1.23'
|
||||||
cache: true
|
cache: true
|
||||||
- name: Restore LLVM source cache
|
- name: Restore LLVM source cache
|
||||||
uses: actions/cache/restore@v4
|
uses: actions/cache/restore@v4
|
||||||
@@ -145,7 +145,7 @@ jobs:
|
|||||||
- name: Install Go
|
- name: Install Go
|
||||||
uses: actions/setup-go@v5
|
uses: actions/setup-go@v5
|
||||||
with:
|
with:
|
||||||
go-version: '1.22'
|
go-version: '1.23'
|
||||||
cache: true
|
cache: true
|
||||||
- name: Build TinyGo (LLVM ${{ matrix.version }})
|
- name: Build TinyGo (LLVM ${{ matrix.version }})
|
||||||
run: go install -tags=llvm${{ matrix.version }}
|
run: go install -tags=llvm${{ matrix.version }}
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ jobs:
|
|||||||
# statically linked binary.
|
# statically linked binary.
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container:
|
container:
|
||||||
image: golang:1.22-alpine
|
image: golang:1.23-alpine
|
||||||
steps:
|
steps:
|
||||||
- name: Install apk dependencies
|
- name: Install apk dependencies
|
||||||
# tar: needed for actions/cache@v4
|
# tar: needed for actions/cache@v4
|
||||||
@@ -141,7 +141,7 @@ jobs:
|
|||||||
- name: Install Go
|
- name: Install Go
|
||||||
uses: actions/setup-go@v5
|
uses: actions/setup-go@v5
|
||||||
with:
|
with:
|
||||||
go-version: '1.22'
|
go-version: '1.23'
|
||||||
cache: true
|
cache: true
|
||||||
- name: Install wasmtime
|
- name: Install wasmtime
|
||||||
uses: bytecodealliance/actions/wasmtime/setup@v1
|
uses: bytecodealliance/actions/wasmtime/setup@v1
|
||||||
@@ -184,7 +184,7 @@ jobs:
|
|||||||
- name: Install Go
|
- name: Install Go
|
||||||
uses: actions/setup-go@v5
|
uses: actions/setup-go@v5
|
||||||
with:
|
with:
|
||||||
go-version: '1.22'
|
go-version: '1.23'
|
||||||
cache: true
|
cache: true
|
||||||
- name: Install Node.js
|
- name: Install Node.js
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v4
|
||||||
@@ -307,7 +307,7 @@ jobs:
|
|||||||
- name: Install Go
|
- name: Install Go
|
||||||
uses: actions/setup-go@v5
|
uses: actions/setup-go@v5
|
||||||
with:
|
with:
|
||||||
go-version: '1.22'
|
go-version: '1.23'
|
||||||
cache: true
|
cache: true
|
||||||
- name: Restore LLVM source cache
|
- name: Restore LLVM source cache
|
||||||
uses: actions/cache/restore@v4
|
uses: actions/cache/restore@v4
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ jobs:
|
|||||||
- name: Install Go
|
- name: Install Go
|
||||||
uses: actions/setup-go@v5
|
uses: actions/setup-go@v5
|
||||||
with:
|
with:
|
||||||
go-version: '1.22'
|
go-version: '1.23'
|
||||||
cache: true
|
cache: true
|
||||||
- name: Restore cached LLVM source
|
- name: Restore cached LLVM source
|
||||||
uses: actions/cache/restore@v4
|
uses: actions/cache/restore@v4
|
||||||
@@ -143,7 +143,7 @@ jobs:
|
|||||||
- name: Install Go
|
- name: Install Go
|
||||||
uses: actions/setup-go@v5
|
uses: actions/setup-go@v5
|
||||||
with:
|
with:
|
||||||
go-version: '1.22'
|
go-version: '1.23'
|
||||||
cache: true
|
cache: true
|
||||||
- name: Download TinyGo build
|
- name: Download TinyGo build
|
||||||
uses: actions/download-artifact@v4
|
uses: actions/download-artifact@v4
|
||||||
@@ -173,7 +173,7 @@ jobs:
|
|||||||
- name: Install Go
|
- name: Install Go
|
||||||
uses: actions/setup-go@v5
|
uses: actions/setup-go@v5
|
||||||
with:
|
with:
|
||||||
go-version: '1.22'
|
go-version: '1.23'
|
||||||
cache: true
|
cache: true
|
||||||
- name: Download TinyGo build
|
- name: Download TinyGo build
|
||||||
uses: actions/download-artifact@v4
|
uses: actions/download-artifact@v4
|
||||||
@@ -209,7 +209,7 @@ jobs:
|
|||||||
- name: Install Go
|
- name: Install Go
|
||||||
uses: actions/setup-go@v5
|
uses: actions/setup-go@v5
|
||||||
with:
|
with:
|
||||||
go-version: '1.22'
|
go-version: '1.23'
|
||||||
cache: true
|
cache: true
|
||||||
- name: Download TinyGo build
|
- name: Download TinyGo build
|
||||||
uses: actions/download-artifact@v4
|
uses: actions/download-artifact@v4
|
||||||
|
|||||||
+2
-2
@@ -1,5 +1,5 @@
|
|||||||
# tinygo-llvm stage obtains the llvm source for TinyGo
|
# tinygo-llvm stage obtains the llvm source for TinyGo
|
||||||
FROM golang:1.22 AS tinygo-llvm
|
FROM golang:1.23 AS tinygo-llvm
|
||||||
|
|
||||||
RUN apt-get update && \
|
RUN apt-get update && \
|
||||||
apt-get install -y apt-utils make cmake clang-15 ninja-build && \
|
apt-get install -y apt-utils make cmake clang-15 ninja-build && \
|
||||||
@@ -33,7 +33,7 @@ RUN cd /tinygo/ && \
|
|||||||
|
|
||||||
# tinygo-compiler copies the compiler build over to a base Go container (without
|
# tinygo-compiler copies the compiler build over to a base Go container (without
|
||||||
# all the build tools etc).
|
# all the build tools etc).
|
||||||
FROM golang:1.22 AS tinygo-compiler
|
FROM golang:1.23 AS tinygo-compiler
|
||||||
|
|
||||||
# Copy tinygo build.
|
# Copy tinygo build.
|
||||||
COPY --from=tinygo-compiler-build /tinygo/build/release/tinygo /tinygo
|
COPY --from=tinygo-compiler-build /tinygo/build/release/tinygo /tinygo
|
||||||
|
|||||||
@@ -370,7 +370,6 @@ endif
|
|||||||
# Additional standard library packages that pass tests on individual platforms
|
# Additional standard library packages that pass tests on individual platforms
|
||||||
TEST_PACKAGES_LINUX := \
|
TEST_PACKAGES_LINUX := \
|
||||||
archive/zip \
|
archive/zip \
|
||||||
bytes \
|
|
||||||
compress/flate \
|
compress/flate \
|
||||||
crypto/hmac \
|
crypto/hmac \
|
||||||
debug/dwarf \
|
debug/dwarf \
|
||||||
@@ -381,7 +380,6 @@ TEST_PACKAGES_LINUX := \
|
|||||||
net \
|
net \
|
||||||
os/user \
|
os/user \
|
||||||
strconv \
|
strconv \
|
||||||
testing/fstest \
|
|
||||||
text/tabwriter \
|
text/tabwriter \
|
||||||
text/template/parse
|
text/template/parse
|
||||||
|
|
||||||
|
|||||||
+2
-2
@@ -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 < 19 || minor > 22 {
|
if major != 1 || minor < 19 || minor > 23 {
|
||||||
// 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.19 through 1.22, got go%d.%d", major, minor)
|
return nil, fmt.Errorf("requires go version 1.19 through 1.23, got go%d.%d", major, minor)
|
||||||
}
|
}
|
||||||
|
|
||||||
return &compileopts.Config{
|
return &compileopts.Config{
|
||||||
|
|||||||
+6
-1
@@ -215,7 +215,7 @@ func runPlatTests(options compileopts.Options, tests []string, t *testing.T) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if options.GOOS == "linux" && (options.GOARCH == "mips" || options.GOARCH == "mipsle") {
|
if options.GOOS == "linux" && (options.GOARCH == "mips" || options.GOARCH == "mipsle") {
|
||||||
if name == "atomic.go" {
|
if name == "atomic.go" || name == "timers.go" {
|
||||||
// 64-bit atomic operations aren't currently supported on MIPS.
|
// 64-bit atomic operations aren't currently supported on MIPS.
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
@@ -246,6 +246,11 @@ func runPlatTests(options compileopts.Options, tests []string, t *testing.T) {
|
|||||||
// some compiler changes).
|
// some compiler changes).
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
case "timers.go":
|
||||||
|
// Crashes starting with Go 1.23.
|
||||||
|
// Bug: https://github.com/llvm/llvm-project/issues/104032
|
||||||
|
continue
|
||||||
|
|
||||||
default:
|
default:
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -55,6 +55,7 @@ const (
|
|||||||
F_GETFL = 0x3
|
F_GETFL = 0x3
|
||||||
F_SETFL = 0x4
|
F_SETFL = 0x4
|
||||||
O_NONBLOCK = 0x4
|
O_NONBLOCK = 0x4
|
||||||
|
TIOCSPGRP = 0x80047476
|
||||||
)
|
)
|
||||||
|
|
||||||
// Source: https://opensource.apple.com/source/xnu/xnu-7195.141.2/bsd/sys/errno.h.auto.html
|
// Source: https://opensource.apple.com/source/xnu/xnu-7195.141.2/bsd/sys/errno.h.auto.html
|
||||||
|
|||||||
@@ -104,6 +104,9 @@ const (
|
|||||||
// ../../lib/wasi-libc/expected/wasm32-wasi/predefined-macros.txt
|
// ../../lib/wasi-libc/expected/wasm32-wasi/predefined-macros.txt
|
||||||
F_GETFL = 3
|
F_GETFL = 3
|
||||||
F_SETFL = 4
|
F_SETFL = 4
|
||||||
|
|
||||||
|
// ../../lib/wasi-libc/libc-top-half/musl/arch/generic/bits/ioctl.h
|
||||||
|
TIOCSPGRP = 0x5410
|
||||||
)
|
)
|
||||||
|
|
||||||
// These values are needed as a stub until Go supports WASI as a full target.
|
// These values are needed as a stub until Go supports WASI as a full target.
|
||||||
@@ -114,6 +117,7 @@ const (
|
|||||||
SYS_FCNTL
|
SYS_FCNTL
|
||||||
SYS_FCNTL64
|
SYS_FCNTL64
|
||||||
SYS_FSTATAT64
|
SYS_FSTATAT64
|
||||||
|
SYS_IOCTL
|
||||||
SYS_OPENAT
|
SYS_OPENAT
|
||||||
SYS_UNLINKAT
|
SYS_UNLINKAT
|
||||||
PATH_MAX = 4096
|
PATH_MAX = 4096
|
||||||
|
|||||||
Vendored
+1
-1
@@ -7,6 +7,6 @@ func main() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// ERROR: # command-line-arguments
|
// ERROR: # command-line-arguments
|
||||||
// ERROR: types.go:4:6: a declared and not used
|
// ERROR: types.go:4:6: declared and not used: a
|
||||||
// ERROR: types.go:5:6: cannot use "foobar" (untyped string constant) as int value in assignment
|
// ERROR: types.go:5:6: cannot use "foobar" (untyped string constant) as int value in assignment
|
||||||
// ERROR: types.go:6:2: undefined: nonexisting
|
// ERROR: types.go:6:2: undefined: nonexisting
|
||||||
|
|||||||
Reference in New Issue
Block a user