Skip to content

Commit 58a0f4e

Browse files
add circleci
1 parent be7534a commit 58a0f4e

File tree

1 file changed

+62
-0
lines changed

1 file changed

+62
-0
lines changed

.circleci/config.yml

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
version: 2.1
2+
3+
jobs:
4+
prepare:
5+
docker:
6+
- image: mbedos/mbed-os-env:latest
7+
steps:
8+
- checkout
9+
- run: |
10+
mbed deploy
11+
- persist_to_workspace:
12+
root: .
13+
paths:
14+
- .
15+
16+
build_mbed:
17+
docker:
18+
- image: mbedos/mbed-os-env:latest
19+
parameters:
20+
toolchain:
21+
type: string
22+
target:
23+
type: string
24+
steps:
25+
- attach_workspace:
26+
at: .
27+
- run: mbed compile -t << parameters.toolchain >> -m << parameters.target >> || exit 1
28+
29+
build_cmake:
30+
docker:
31+
- image: mbedos/mbed-os-env:latest
32+
parameters:
33+
toolchain:
34+
type: string
35+
target:
36+
type: string
37+
steps:
38+
- attach_workspace:
39+
at: .
40+
- run: python3 -m pip install mbed-tools --upgrade # remove after docker image is updated to contain new tools
41+
- run: mbed-tools compile -t << parameters.toolchain >> -m << parameters.target >> || exit 1
42+
43+
workflows:
44+
workflow:
45+
jobs:
46+
- prepare
47+
- build_mbed:
48+
requires:
49+
- prepare
50+
matrix:
51+
parameters:
52+
target: ["K64F", "DISCO_F413ZH", "DISCO_L475VG_IOT01A"]
53+
toolchain: ["GCC_ARM"]
54+
name: build-mbed-<< matrix.target >>-<< matrix.toolchain >>
55+
- build_cmake:
56+
requires:
57+
- prepare
58+
matrix:
59+
parameters:
60+
target: ["K64F", "DISCO_L475VG_IOT01A"]
61+
toolchain: ["GCC_ARM"]
62+
name: build-cmake-<< matrix.target >>-<< matrix.toolchain >>

0 commit comments

Comments
 (0)