Skip to content

Commit

Permalink
Merge branch 'main' into 08-13-chore_crashtracker_add_required_backen…
Browse files Browse the repository at this point in the history
…d_tags
  • Loading branch information
sanchda authored Aug 14, 2024
2 parents af18b53 + 00a66eb commit 1cfe3bc
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .circleci/config.templ.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,34 @@ commands:
- run: curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain stable -y
- run: echo 'export PATH="$HOME/.cargo/bin:$PATH"' >> "$BASH_ENV"

setup_sccache:
description: "Install and configure sccache"
steps:
- run:
name: "Install sccache"
command: |
curl -L https://github.com/mozilla/sccache/releases/download/v0.8.1/sccache-v0.8.1-x86_64-unknown-linux-musl.tar.gz | tar zx --strip-components=1 -C /usr/local/bin/ sccache-v0.8.1-x86_64-unknown-linux-musl/sccache
echo "export SCCACHE_DIR=/root/.cache/sccache" >> "$BASH_ENV"
echo "export SCCACHE_CACHE_SIZE=1G" >> "$BASH_ENV"
echo "export SCCACHE_DIRECT=true" >> "$BASH_ENV"
echo "export DD_USE_SCCACHE=1" >> "$BASH_ENV"
/usr/local/bin/sccache --version
- restore_cache:
name: Restore sccache cache
key: v0-sccache-cache-{{ arch }}-{{ .Environment.CIRCLE_JOB }}-{{ .Environment.CIRCLE_NODE_INDEX }}

save_sccache:
description: "Save the sccache cache"
steps:
- run:
name: "sccache stats"
command: /usr/local/bin/sccache --show-stats
- save_cache:
name: Save sccache cache
key: v0-sccache-cache-{{ arch }}-{{ .Environment.CIRCLE_JOB }}-{{ .Environment.CIRCLE_NODE_INDEX }}-{{ epoch }}
paths:
- /root/.cache/sccache/

setup_hatch:
description: "Install hatch"
steps:
Expand Down Expand Up @@ -455,13 +483,15 @@ jobs:
steps:
- checkout
- setup_riot
- setup_sccache
- run:
name: "Generate base virtual environments."
# DEV: riot list -i tracer lists all supported Python versions
command: "riot list -i tracer | circleci tests split | xargs -I PY riot -P -v generate --python=PY"
environment:
CMAKE_BUILD_PARALLEL_LEVEL: 12
PIP_VERBOSE: 1
- save_sccache
- persist_to_workspace:
root: .
paths:
Expand Down

0 comments on commit 1cfe3bc

Please sign in to comment.