File tree Expand file tree Collapse file tree 1 file changed +62
-0
lines changed Expand file tree Collapse file tree 1 file changed +62
-0
lines changed Original file line number Diff line number Diff line change
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 >>
You can’t perform that action at this time.
0 commit comments