Skip to content

Commit 54ef093

Browse files
committed
Speed up circle build
1 parent a1c116d commit 54ef093

File tree

1 file changed

+13
-14
lines changed

1 file changed

+13
-14
lines changed

.circleci/config.yml

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,9 @@ target_steps: &target_steps
44
steps:
55
- checkout
66
- restore_cache:
7-
key: v1-ssd1306-{{ .Environment.CIRCLE_JOB }}-{{ checksum "Cargo.toml" }}
7+
key: v2-ssd1306-{{ .Environment.CIRCLE_JOB }}-{{ checksum "Cargo.toml" }}
88
- run: rustup self update
9-
- run: sudo apt install -qq python-pip
10-
- run: sudo pip install linkchecker
9+
- run: sudo apt install -qq linkchecker
1110
- run: rustup default ${RUST_VERSION:-stable}
1211
- run: rustup component add rustfmt
1312
- run: cargo update
@@ -21,57 +20,57 @@ target_steps: &target_steps
2120
fi
2221
- run: ./build.sh
2322
- save_cache:
24-
key: v1-ssd1306-{{ .Environment.CIRCLE_JOB }}-{{ checksum "Cargo.toml" }}
23+
key: v2-ssd1306-{{ .Environment.CIRCLE_JOB }}-{{ checksum "Cargo.toml" }}
2524
paths:
2625
- ./target
27-
- /home/ubuntu/.cargo
26+
- /usr/local/cargo/registry
2827

2928
version: 2
3029
jobs:
3130
target-arm-unknown-linux-eabi:
3231
environment:
33-
- TARGET: 'arm-unknown-linux-gnueabi'
32+
- TARGET: "arm-unknown-linux-gnueabi"
3433
- DISABLE_EXAMPLES: 1
3534
<<: *target_steps
3635

3736
target-armv7-unknown-linux-gnueabihf:
3837
environment:
39-
- TARGET: 'armv7-unknown-linux-gnueabihf'
38+
- TARGET: "armv7-unknown-linux-gnueabihf"
4039
- DISABLE_EXAMPLES: 1
4140
<<: *target_steps
4241

4342
target-x86_64-unknown-linux-gnu:
4443
environment:
45-
- TARGET: 'x86_64-unknown-linux-gnu'
44+
- TARGET: "x86_64-unknown-linux-gnu"
4645
- DISABLE_EXAMPLES: 1
4746
<<: *target_steps
4847

4948
target-x86_64-unknown-linux-musl:
5049
environment:
51-
- TARGET: 'x86_64-unknown-linux-musl'
50+
- TARGET: "x86_64-unknown-linux-musl"
5251
- DISABLE_EXAMPLES: 1
5352
<<: *target_steps
5453

5554
target-thumbv6m-none-eabi:
5655
environment:
57-
- TARGET: 'thumbv6m-none-eabi'
56+
- TARGET: "thumbv6m-none-eabi"
5857
# Disable example builds as they target thumbv7 and up
5958
- DISABLE_EXAMPLES: 1
6059
<<: *target_steps
6160

6261
target-thumbv7em-none-eabi:
6362
environment:
64-
- TARGET: 'thumbv7em-none-eabi'
63+
- TARGET: "thumbv7em-none-eabi"
6564
<<: *target_steps
6665

6766
target-thumbv7em-none-eabihf:
6867
environment:
69-
- TARGET: 'thumbv7em-none-eabihf'
68+
- TARGET: "thumbv7em-none-eabihf"
7069
<<: *target_steps
7170

7271
target-thumbv7m-none-eabi:
7372
environment:
74-
- TARGET: 'thumbv7m-none-eabi'
73+
- TARGET: "thumbv7m-none-eabi"
7574
<<: *target_steps
7675

7776
build_jobs: &build_jobs
@@ -102,7 +101,7 @@ workflows:
102101
<<: *build_jobs
103102
triggers:
104103
- schedule:
105-
cron: '0 0 * * *'
104+
cron: "0 0 * * *"
106105
filters:
107106
branches:
108107
only:

0 commit comments

Comments
 (0)