Skip to content

Commit 86acfc7

Browse files
aykevldeadprogram
authored andcommitted
ci: add caching to macOS build
This should speed up testing.
1 parent a5fb785 commit 86acfc7

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.circleci/config.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,10 @@ commands:
168168
sudo tar -C /usr/local -xzf go1.12.5.darwin-amd64.tar.gz
169169
ln -s /usr/local/go/bin/go /usr/local/bin/go
170170
HOMEBREW_NO_AUTO_UPDATE=1 brew install qemu
171+
- restore_cache:
172+
keys:
173+
- go-cache-macos-v2-{{ checksum "go.mod" }}-{{ .Environment.CIRCLE_PREVIOUS_BUILD_NUM }}
174+
- go-cache-macos-v2-{{ checksum "go.mod" }}
171175
- restore_cache:
172176
keys:
173177
- llvm-source-8-macos-v5
@@ -222,6 +226,12 @@ commands:
222226
curl -O https://static.dev.sifive.com/dev-tools/riscv64-unknown-elf-gcc-8.2.0-2019.05.3-x86_64-apple-darwin.tar.gz
223227
sudo tar -C /usr/local --strip-components=1 -xf riscv64-unknown-elf-gcc-8.2.0-2019.05.3-x86_64-apple-darwin.tar.gz
224228
- run: make smoketest AVR=0
229+
- save_cache:
230+
key: go-cache-macos-v2-{{ checksum "go.mod" }}-{{ .Environment.CIRCLE_BUILD_NUM }}
231+
paths:
232+
- ~/.cache/go-build
233+
- ~/.cache/tinygo
234+
- /go/pkg/mod
225235

226236

227237
jobs:

0 commit comments

Comments
 (0)