Browse Source

ci: improve llvm-build cache

pull/1789/head
sago35 4 years ago
committed by Ayke
parent
commit
b2e72c96f4
  1. 15
      .circleci/config.yml

15
.circleci/config.yml

@ -157,7 +157,7 @@ commands:
- llvm-source-linux - llvm-source-linux
- restore_cache: - restore_cache:
keys: keys:
- llvm-build-11-linux-v2-assert - llvm-build-11-linux-v3-assert
- run: - run:
name: "Build LLVM" name: "Build LLVM"
command: | command: |
@ -173,9 +173,10 @@ commands:
chmod +x /go/bin/ninja chmod +x /go/bin/ninja
# build! # build!
make ASSERT=1 llvm-build make ASSERT=1 llvm-build
find llvm-build -name CMakeFiles -prune -exec rm -r '{}' \;
fi fi
- save_cache: - save_cache:
key: llvm-build-11-linux-v2-assert key: llvm-build-11-linux-v3-assert
paths: paths:
llvm-build llvm-build
- run: make ASSERT=1 - run: make ASSERT=1
@ -224,7 +225,7 @@ commands:
- llvm-source-linux - llvm-source-linux
- restore_cache: - restore_cache:
keys: keys:
- llvm-build-11-linux-v2-noassert - llvm-build-11-linux-v3-noassert
- run: - run:
name: "Build LLVM" name: "Build LLVM"
command: | command: |
@ -240,9 +241,10 @@ commands:
chmod +x /go/bin/ninja chmod +x /go/bin/ninja
# build! # build!
make llvm-build make llvm-build
find llvm-build -name CMakeFiles -prune -exec rm -r '{}' \;
fi fi
- save_cache: - save_cache:
key: llvm-build-11-linux-v2-noassert key: llvm-build-11-linux-v3-noassert
paths: paths:
llvm-build llvm-build
- build-wasi-libc - build-wasi-libc
@ -309,7 +311,7 @@ commands:
- llvm-project/llvm/include - llvm-project/llvm/include
- restore_cache: - restore_cache:
keys: keys:
- llvm-build-11-macos-v2 - llvm-build-11-macos-v3
- run: - run:
name: "Build LLVM" name: "Build LLVM"
command: | command: |
@ -322,9 +324,10 @@ commands:
HOMEBREW_NO_AUTO_UPDATE=1 brew install cmake ninja HOMEBREW_NO_AUTO_UPDATE=1 brew install cmake ninja
# build! # build!
make llvm-build make llvm-build
find llvm-build -name CMakeFiles -prune -exec rm -r '{}' \;
fi fi
- save_cache: - save_cache:
key: llvm-build-11-macos-v2 key: llvm-build-11-macos-v3
paths: paths:
llvm-build llvm-build
- restore_cache: - restore_cache:

Loading…
Cancel
Save