aboutsummaryrefslogtreecommitdiffhomepage
path: root/.circleci
diff options
context:
space:
mode:
authordeadprogram <[email protected]>2021-11-02 15:32:26 +0100
committerRon Evans <[email protected]>2022-01-10 22:50:52 +0100
commit72e15af1fa21fc1a8bd60813ac85b14421cadd9e (patch)
treef1ea0c87423a0aca786760b2730a80f96ae7ba5a /.circleci
parent6cb604c7524f7e72b77c6f440262936d4cf6abe4 (diff)
downloadtinygo-72e15af1fa21fc1a8bd60813ac85b14421cadd9e.tar.gz
tinygo-72e15af1fa21fc1a8bd60813ac85b14421cadd9e.zip
ci: use GH action to perform build for macos
Signed-off-by: deadprogram <[email protected]>
Diffstat (limited to '.circleci')
-rw-r--r--.circleci/config.yml106
1 files changed, 0 insertions, 106 deletions
diff --git a/.circleci/config.yml b/.circleci/config.yml
index cfcabaa51..d3e1b5de5 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -99,104 +99,6 @@ commands:
- ~/.cache/go-build
- /go/pkg/mod
- run: make fmt-check
- build-macos:
- steps:
- - checkout
- - submodules
- - run:
- name: "Install dependencies"
- command: |
- curl https://dl.google.com/go/go1.17.darwin-amd64.tar.gz -o go1.17.darwin-amd64.tar.gz
- sudo tar -C /usr/local -xzf go1.17.darwin-amd64.tar.gz
- ln -s /usr/local/go/bin/go /usr/local/bin/go
- HOMEBREW_NO_AUTO_UPDATE=1 brew install cmake ninja
- - install-xtensa-toolchain:
- variant: "macos"
- - restore_cache:
- keys:
- - go-cache-macos-v3-{{ checksum "go.mod" }}-{{ .Environment.CIRCLE_PREVIOUS_BUILD_NUM }}
- - go-cache-macos-v3-{{ checksum "go.mod" }}
- - restore_cache:
- keys:
- - llvm-source-13-macos-v1
- - run:
- name: "Fetch LLVM source"
- command: make llvm-source
- - save_cache:
- key: llvm-source-13-macos-v1
- paths:
- - llvm-project/clang/lib/Headers
- - llvm-project/clang/include
- - llvm-project/lld/include
- - llvm-project/llvm/include
- - restore_cache:
- keys:
- - llvm-build-13-macos-v1
- - run:
- name: "Build LLVM"
- command: |
- if [ ! -f llvm-build/lib/liblldELF.a ]
- then
- # fetch LLVM source (may only have headers right now)
- rm -rf llvm-project
- make llvm-source
- # build!
- make llvm-build
- find llvm-build -name CMakeFiles -prune -exec rm -r '{}' \;
- fi
- - save_cache:
- key: llvm-build-13-macos-v1
- paths:
- llvm-build
- - restore_cache:
- keys:
- - binaryen-macos-v1
- - run:
- name: "Build Binaryen"
- command: |
- if [ ! -f build/wasm-opt ]
- then
- make binaryen
- fi
- - save_cache:
- key: binaryen-macos-v1
- paths:
- - build/wasm-opt
- - restore_cache:
- keys:
- - wasi-libc-sysroot-macos-v4
- - run:
- name: "Build wasi-libc"
- command: make wasi-libc
- - save_cache:
- key: wasi-libc-sysroot-macos-v4
- paths:
- - lib/wasi-libc/sysroot
- - run:
- name: "Test TinyGo"
- command: make test GOTESTFLAGS="-v -short"
- no_output_timeout: 20m
- - run:
- name: "Build TinyGo release"
- command: |
- make release -j3
- cp -p build/release.tar.gz /tmp/tinygo.darwin-amd64.tar.gz
- - store_artifacts:
- path: /tmp/tinygo.darwin-amd64.tar.gz
- - run:
- name: "Extract release tarball"
- command: |
- mkdir -p ~/lib
- tar -C /usr/local/opt -xf /tmp/tinygo.darwin-amd64.tar.gz
- ln -s /usr/local/opt/tinygo/bin/tinygo /usr/local/bin/tinygo
- tinygo version
- - run: make tinygo-test
- - run: make smoketest AVR=0
- - save_cache:
- key: go-cache-macos-v3-{{ checksum "go.mod" }}-{{ .Environment.CIRCLE_BUILD_NUM }}
- paths:
- - ~/.cache/go-build
- - /go/pkg/mod
jobs:
test-llvm11-go115:
@@ -211,17 +113,9 @@ jobs:
steps:
- test-linux:
llvm: "12"
- build-macos:
- macos:
- xcode: "11.4.1" # macOS 10.15.4
- steps:
- - build-macos
-
-
workflows:
test-all:
jobs:
- test-llvm11-go115
- test-llvm12-go116
- - build-macos