Browse Source

ci: build TinyGo using Go 1.19

We've supported Go 1.19 for a while now, let's actually use it in CI.
pull/3196/head
Ayke van Laethem 2 years ago
committed by Ron Evans
parent
commit
1e6c14b3e4
  1. 10
      .circleci/config.yml
  2. 4
      .github/workflows/build-macos.yml
  3. 10
      .github/workflows/linux.yml
  4. 2
      .github/workflows/windows.yml
  5. 2
      Dockerfile

10
.circleci/config.yml

@ -118,13 +118,6 @@ jobs:
steps:
- test-linux:
llvm: "14"
test-llvm14-go119:
docker:
- image: golang:1.19beta1-buster
steps:
- test-linux:
llvm: "14"
fmt-check: false
workflows:
test-all:
@ -132,6 +125,3 @@ workflows:
# This tests our lowest supported versions of Go and LLVM, to make sure at
# least the smoke tests still pass.
- test-llvm14-go118
# This tests a beta version of Go. It should be removed once regular
# release builds are built using this version.
- test-llvm14-go119

4
.github/workflows/build-macos.yml

@ -34,7 +34,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v3
with:
go-version: '1.18'
go-version: '1.19'
cache: true
- name: Cache LLVM source
uses: actions/cache@v3
@ -114,7 +114,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v3
with:
go-version: '1.18'
go-version: '1.19'
cache: true
- name: Build TinyGo
run: go install

10
.github/workflows/linux.yml

@ -18,7 +18,7 @@ jobs:
# statically linked binary.
runs-on: ubuntu-latest
container:
image: golang:1.18-alpine
image: golang:1.19-alpine
steps:
- name: Install apk dependencies
# tar: needed for actions/cache@v3
@ -118,7 +118,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v3
with:
go-version: '1.18'
go-version: '1.19'
cache: true
- name: Install wasmtime
run: |
@ -171,7 +171,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v3
with:
go-version: '1.18'
go-version: '1.19'
cache: true
- name: Install Node.js
uses: actions/setup-node@v2
@ -271,7 +271,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v3
with:
go-version: '1.18'
go-version: '1.19'
cache: true
- name: Cache LLVM source
uses: actions/cache@v3
@ -371,7 +371,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v3
with:
go-version: '1.18'
go-version: '1.19'
cache: true
- name: Cache LLVM source
uses: actions/cache@v3

2
.github/workflows/windows.yml

@ -29,7 +29,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v3
with:
go-version: '1.18'
go-version: '1.19'
cache: true
- name: Cache LLVM source
uses: actions/cache@v3

2
Dockerfile

@ -1,5 +1,5 @@
# tinygo-llvm stage obtains the llvm source for TinyGo
FROM golang:1.18 AS tinygo-llvm
FROM golang:1.19 AS tinygo-llvm
RUN apt-get update && \
apt-get install -y apt-utils make cmake clang-11 binutils-avr gcc-avr avr-libc ninja-build

Loading…
Cancel
Save