File tree Expand file tree Collapse file tree 1 file changed +35
-0
lines changed Expand file tree Collapse file tree 1 file changed +35
-0
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,28 @@ target_steps: &target_steps
25
25
- ./target
26
26
- /usr/local/cargo/registry
27
27
28
+ cross_steps : &cross_steps
29
+ docker :
30
+ - image : circleci/rust:1.41.0
31
+ steps :
32
+ - checkout
33
+ - restore_cache :
34
+ key : v2-ssd1306-raspi-{{ .Environment.CIRCLE_JOB }}-{{ checksum "Cargo.toml" }}
35
+ - run : rustup self update
36
+ - run : sudo apt install -qq linkchecker
37
+ - run : rustup default ${RUST_VERSION:-stable}
38
+ - run : rustup component add rustfmt
39
+ - run : cargo update
40
+ - run : cargo install cross
41
+ - run : |
42
+ cd {{ .Environment.EXAMPLE_PATH }}
43
+ cross build --release --target {{ .Environment.CIRCLE_JOB }}
44
+ - save_cache :
45
+ key : v2-ssd1306-raspi-{{ .Environment.CIRCLE_JOB }}-{{ checksum "Cargo.toml" }}
46
+ paths :
47
+ - ./target
48
+ - /usr/local/cargo/registry
49
+
28
50
version : 2
29
51
jobs :
30
52
target-arm-unknown-linux-eabi :
73
95
- TARGET : " thumbv7m-none-eabi"
74
96
<< : *target_steps
75
97
98
+ version : 2
99
+ jobs :
100
+ example-raspi :
101
+ environment :
102
+ - TARGET : " armv7-unknown-linux-gnueabihf"
103
+ - EXAMPLE_PATH : " examples/raspi"
104
+ << : *cross_steps
105
+
76
106
build_jobs : &build_jobs
77
107
jobs :
78
108
# Raspberry Pi 1
@@ -91,10 +121,15 @@ build_jobs: &build_jobs
91
121
- target-thumbv7em-none-eabihf
92
122
- target-thumbv7m-none-eabi
93
123
124
+ build_example_jobs : &build_example_jobs
125
+ jobs :
126
+ - example-raspi
127
+
94
128
workflows :
95
129
version : 2
96
130
build_all :
97
131
<< : *build_jobs
132
+ << : *build_example_jobs
98
133
99
134
# Build every day
100
135
nightly :
You can’t perform that action at this time.
0 commit comments