Skip to content

Commit 09687ea

Browse files
committed
Faster CI build with correct folder caching
1 parent dc2a79a commit 09687ea

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

.circleci/config.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ target_steps: &target_steps
44
steps:
55
- checkout
66
- restore_cache:
7-
key: v1-ssd1331-{{ .Environment.CIRCLE_JOB }}-{{ checksum "Cargo.toml" }}
7+
key: v2-ssd1331-{{ .Environment.CIRCLE_JOB }}-{{ checksum "Cargo.toml" }}
88
- run: sudo apt install -qq linkchecker
99
- run: rustup default ${RUST_VERSION:-stable}
1010
- run: rustup component add rustfmt
@@ -18,57 +18,57 @@ target_steps: &target_steps
1818
fi
1919
- run: ./build.sh
2020
- save_cache:
21-
key: v1-ssd1331-{{ .Environment.CIRCLE_JOB }}-{{ checksum "Cargo.toml" }}
21+
key: v2-ssd1331-{{ .Environment.CIRCLE_JOB }}-{{ checksum "Cargo.toml" }}
2222
paths:
2323
- ./target
24-
- /home/ubuntu/.cargo
24+
- /usr/local/cargo/registry
2525

2626
version: 2
2727
jobs:
2828
target-arm-unknown-linux-eabi:
2929
environment:
30-
- TARGET: 'arm-unknown-linux-gnueabi'
30+
- TARGET: "arm-unknown-linux-gnueabi"
3131
- DISABLE_EXAMPLES: 1
3232
<<: *target_steps
3333

3434
target-armv7-unknown-linux-gnueabihf:
3535
environment:
36-
- TARGET: 'armv7-unknown-linux-gnueabihf'
36+
- TARGET: "armv7-unknown-linux-gnueabihf"
3737
- DISABLE_EXAMPLES: 1
3838
<<: *target_steps
3939

4040
target-x86_64-unknown-linux-gnu:
4141
environment:
42-
- TARGET: 'x86_64-unknown-linux-gnu'
42+
- TARGET: "x86_64-unknown-linux-gnu"
4343
- DISABLE_EXAMPLES: 1
4444
<<: *target_steps
4545

4646
target-x86_64-unknown-linux-musl:
4747
environment:
48-
- TARGET: 'x86_64-unknown-linux-musl'
48+
- TARGET: "x86_64-unknown-linux-musl"
4949
- DISABLE_EXAMPLES: 1
5050
<<: *target_steps
5151

5252
target-thumbv6m-none-eabi:
5353
environment:
54-
- TARGET: 'thumbv6m-none-eabi'
54+
- TARGET: "thumbv6m-none-eabi"
5555
# Disable example builds as they target thumbv7 and up
5656
- DISABLE_EXAMPLES: 1
5757
<<: *target_steps
5858

5959
target-thumbv7em-none-eabi:
6060
environment:
61-
- TARGET: 'thumbv7em-none-eabi'
61+
- TARGET: "thumbv7em-none-eabi"
6262
<<: *target_steps
6363

6464
target-thumbv7em-none-eabihf:
6565
environment:
66-
- TARGET: 'thumbv7em-none-eabihf'
66+
- TARGET: "thumbv7em-none-eabihf"
6767
<<: *target_steps
6868

6969
target-thumbv7m-none-eabi:
7070
environment:
71-
- TARGET: 'thumbv7m-none-eabi'
71+
- TARGET: "thumbv7m-none-eabi"
7272
<<: *target_steps
7373

7474
build_jobs: &build_jobs
@@ -99,7 +99,7 @@ workflows:
9999
<<: *build_jobs
100100
triggers:
101101
- schedule:
102-
cron: '0 0 * * *'
102+
cron: "0 0 * * *"
103103
filters:
104104
branches:
105105
only:

0 commit comments

Comments
 (0)