mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-07-26 06:38:42 +00:00
ci: remove CircleCI configuration
Signed-off-by: deadprogram <ron@hybridgroup.com>
This commit is contained in:
@@ -1,119 +0,0 @@
|
|||||||
version: 2.1
|
|
||||||
|
|
||||||
commands:
|
|
||||||
submodules:
|
|
||||||
steps:
|
|
||||||
- run:
|
|
||||||
name: "Pull submodules"
|
|
||||||
command: git submodule update --init
|
|
||||||
llvm-source-linux:
|
|
||||||
steps:
|
|
||||||
- restore_cache:
|
|
||||||
keys:
|
|
||||||
- llvm-source-19-v1
|
|
||||||
- run:
|
|
||||||
name: "Fetch LLVM source"
|
|
||||||
command: make llvm-source
|
|
||||||
- save_cache:
|
|
||||||
key: llvm-source-19-v1
|
|
||||||
paths:
|
|
||||||
- llvm-project/clang/lib/Headers
|
|
||||||
- llvm-project/clang/include
|
|
||||||
- llvm-project/compiler-rt
|
|
||||||
- llvm-project/lld/include
|
|
||||||
- llvm-project/llvm/include
|
|
||||||
hack-ninja-jobs:
|
|
||||||
steps:
|
|
||||||
- run:
|
|
||||||
name: "Hack Ninja to use less jobs"
|
|
||||||
command: |
|
|
||||||
echo -e '#!/bin/sh\n/usr/bin/ninja -j3 "$@"' > /go/bin/ninja
|
|
||||||
chmod +x /go/bin/ninja
|
|
||||||
build-binaryen-linux:
|
|
||||||
steps:
|
|
||||||
- restore_cache:
|
|
||||||
keys:
|
|
||||||
- binaryen-linux-v3
|
|
||||||
- run:
|
|
||||||
name: "Build Binaryen"
|
|
||||||
command: |
|
|
||||||
make binaryen
|
|
||||||
- save_cache:
|
|
||||||
key: binaryen-linux-v3
|
|
||||||
paths:
|
|
||||||
- build/wasm-opt
|
|
||||||
test-linux:
|
|
||||||
parameters:
|
|
||||||
llvm:
|
|
||||||
type: string
|
|
||||||
fmt-check:
|
|
||||||
type: boolean
|
|
||||||
default: true
|
|
||||||
steps:
|
|
||||||
- checkout
|
|
||||||
- submodules
|
|
||||||
- run:
|
|
||||||
name: "Install apt dependencies"
|
|
||||||
command: |
|
|
||||||
echo 'deb https://apt.llvm.org/bullseye/ llvm-toolchain-bullseye-<<parameters.llvm>> main' > /etc/apt/sources.list.d/llvm.list
|
|
||||||
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add -
|
|
||||||
apt-get update
|
|
||||||
apt-get install --no-install-recommends -y \
|
|
||||||
llvm-<<parameters.llvm>>-dev \
|
|
||||||
clang-<<parameters.llvm>> \
|
|
||||||
libclang-<<parameters.llvm>>-dev \
|
|
||||||
lld-<<parameters.llvm>> \
|
|
||||||
cmake \
|
|
||||||
ninja-build
|
|
||||||
- hack-ninja-jobs
|
|
||||||
- build-binaryen-linux
|
|
||||||
- restore_cache:
|
|
||||||
keys:
|
|
||||||
- go-cache-v4-{{ checksum "go.mod" }}-{{ .Environment.CIRCLE_PREVIOUS_BUILD_NUM }}
|
|
||||||
- go-cache-v4-{{ checksum "go.mod" }}
|
|
||||||
- llvm-source-linux
|
|
||||||
- run: go install -tags=llvm<<parameters.llvm>> .
|
|
||||||
- when:
|
|
||||||
condition: <<parameters.fmt-check>>
|
|
||||||
steps:
|
|
||||||
- run:
|
|
||||||
# Do this before gen-device so that it doesn't check the
|
|
||||||
# formatting of generated files.
|
|
||||||
name: Check Go code formatting
|
|
||||||
command: make fmt-check lint
|
|
||||||
- run: make gen-device -j4
|
|
||||||
# TODO: change this to -skip='TestErrors|TestWasm' with Go 1.20
|
|
||||||
- run: go test -tags=llvm<<parameters.llvm>> -short -run='TestBuild|TestTest|TestGetList|TestTraceback'
|
|
||||||
- run: make smoketest XTENSA=0
|
|
||||||
- save_cache:
|
|
||||||
key: go-cache-v4-{{ checksum "go.mod" }}-{{ .Environment.CIRCLE_BUILD_NUM }}
|
|
||||||
paths:
|
|
||||||
- ~/.cache/go-build
|
|
||||||
- /go/pkg/mod
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
test-oldest:
|
|
||||||
# This tests our lowest supported versions of Go and LLVM, to make sure at
|
|
||||||
# least the smoke tests still pass.
|
|
||||||
docker:
|
|
||||||
- image: golang:1.23-bullseye
|
|
||||||
steps:
|
|
||||||
- test-linux:
|
|
||||||
llvm: "15"
|
|
||||||
resource_class: large
|
|
||||||
test-newest:
|
|
||||||
# This tests the latest supported LLVM version when linking against system
|
|
||||||
# libraries.
|
|
||||||
docker:
|
|
||||||
- image: golang:1.26-bookworm
|
|
||||||
steps:
|
|
||||||
- test-linux:
|
|
||||||
llvm: "20"
|
|
||||||
resource_class: large
|
|
||||||
|
|
||||||
workflows:
|
|
||||||
test-all:
|
|
||||||
jobs:
|
|
||||||
- test-oldest
|
|
||||||
# disable this test, since CircleCI seems unable to download due to rate-limits on Dockerhub.
|
|
||||||
# - test-newest
|
|
||||||
@@ -1,5 +1,4 @@
|
|||||||
build/
|
build/
|
||||||
llvm-*/
|
llvm-*/
|
||||||
.github
|
.github
|
||||||
.circleci
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
# TinyGo - Go compiler for small places
|
# TinyGo - Go compiler for small places
|
||||||
|
|
||||||
[](https://github.com/tinygo-org/tinygo/actions/workflows/linux.yml) [](https://github.com/tinygo-org/tinygo/actions/workflows/build-macos.yml) [](https://github.com/tinygo-org/tinygo/actions/workflows/windows.yml) [](https://github.com/tinygo-org/tinygo/actions/workflows/docker.yml) [](https://github.com/tinygo-org/tinygo/actions/workflows/nix.yml) [](https://circleci.com/gh/tinygo-org/tinygo/tree/dev)
|
[](https://github.com/tinygo-org/tinygo/actions/workflows/linux.yml) [](https://github.com/tinygo-org/tinygo/actions/workflows/build-macos.yml) [](https://github.com/tinygo-org/tinygo/actions/workflows/windows.yml) [](https://github.com/tinygo-org/tinygo/actions/workflows/docker.yml) [](https://github.com/tinygo-org/tinygo/actions/workflows/nix.yml)
|
||||||
|
|
||||||
TinyGo is a Go compiler intended for use in small places such as microcontrollers, WebAssembly (wasm/wasi), and command-line tools.
|
TinyGo is a Go compiler intended for use in small places such as microcontrollers, WebAssembly (wasm/wasi), and command-line tools.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user