ci: switch to Go 1.22

This commit is contained in:
Ayke van Laethem
2024-02-07 12:16:09 +01:00
committed by Ron Evans
parent c47f52b546
commit 5baee9a8ee
5 changed files with 14 additions and 23 deletions
+3 -12
View File
@@ -105,16 +105,9 @@ jobs:
- test-linux:
llvm: "15"
resource_class: large
test-llvm16-go122:
test-llvm17-go122:
docker:
- image: golang:1.22-rc-bullseye
steps:
- test-linux:
llvm: "16"
resource_class: large
test-llvm17-go121:
docker:
- image: golang:1.21-bullseye
- image: golang:1.22-bullseye
steps:
- test-linux:
llvm: "17"
@@ -126,7 +119,5 @@ workflows:
# This tests our lowest supported versions of Go and LLVM, to make sure at
# least the smoke tests still pass.
- test-llvm15-go118
# This tests the upcoming Go 1.22 support.
- test-llvm16-go122
# This tests LLVM 17 support when linking against system libraries.
- test-llvm17-go121
- test-llvm17-go122
+2 -2
View File
@@ -37,7 +37,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: '1.21'
go-version: '1.22'
cache: true
- name: Restore LLVM source cache
uses: actions/cache/restore@v4
@@ -145,7 +145,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: '1.21'
go-version: '1.22'
cache: true
- name: Build TinyGo (LLVM ${{ matrix.version }})
run: go install -tags=llvm${{ matrix.version }}
+4 -4
View File
@@ -18,7 +18,7 @@ jobs:
# statically linked binary.
runs-on: ubuntu-latest
container:
image: golang:1.21-alpine
image: golang:1.22-alpine
steps:
- name: Install apk dependencies
# tar: needed for actions/cache@v4
@@ -135,7 +135,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: '1.21'
go-version: '1.22'
cache: true
- name: Install wasmtime
run: |
@@ -178,7 +178,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: '1.21'
go-version: '1.22'
cache: true
- name: Install Node.js
uses: actions/setup-node@v4
@@ -301,7 +301,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: '1.21'
go-version: '1.22'
cache: true
- name: Restore LLVM source cache
uses: actions/cache/restore@v4
+4 -4
View File
@@ -35,7 +35,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: '1.21'
go-version: '1.22'
cache: true
- name: Restore cached LLVM source
uses: actions/cache/restore@v4
@@ -143,7 +143,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: '1.21'
go-version: '1.22'
cache: true
- name: Download TinyGo build
uses: actions/download-artifact@v4
@@ -173,7 +173,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: '1.21'
go-version: '1.22'
cache: true
- name: Download TinyGo build
uses: actions/download-artifact@v4
@@ -209,7 +209,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: '1.21'
go-version: '1.22'
cache: true
- name: Download TinyGo build
uses: actions/download-artifact@v4
+1 -1
View File
@@ -1,5 +1,5 @@
# tinygo-llvm stage obtains the llvm source for TinyGo
FROM golang:1.21 AS tinygo-llvm
FROM golang:1.22 AS tinygo-llvm
RUN apt-get update && \
apt-get install -y apt-utils make cmake clang-15 ninja-build && \