File tree Expand file tree Collapse file tree 3 files changed +72
-233
lines changed Expand file tree Collapse file tree 3 files changed +72
-233
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-armc:latest
19
+ auth :
20
+ username : mbedos
21
+ password : $DOCKERHUB_PASSWORD
22
+ parameters :
23
+ toolchain :
24
+ type : string
25
+ target :
26
+ type : string
27
+ steps :
28
+ - attach_workspace :
29
+ at : .
30
+ - run : mbed compile -t << parameters.toolchain >> -m << parameters.target >> || exit 1
31
+
32
+ build_cmake :
33
+ docker :
34
+ - image : mbedos/mbed-os-env-armc:latest
35
+ auth :
36
+ username : mbedos
37
+ password : $DOCKERHUB_PASSWORD
38
+ parameters :
39
+ toolchain :
40
+ type : string
41
+ target :
42
+ type : string
43
+ steps :
44
+ - attach_workspace :
45
+ at : .
46
+ - run : python3 -m pip install mbed-tools --upgrade # remove after docker image is updated to contain new tools
47
+ - run : mbed-tools compile -t << parameters.toolchain >> -m << parameters.target >> || exit 1
48
+
49
+ workflows :
50
+ workflow :
51
+ jobs :
52
+ - prepare
53
+ - build_mbed :
54
+ context :
55
+ - mbedos-docker-hub-creds
56
+ requires :
57
+ - prepare
58
+ matrix :
59
+ parameters :
60
+ target : ["K64F", "DISCO_F413ZH"]
61
+ toolchain : ["GCC_ARM","ARMC6"]
62
+ name : build-mbed-<< matrix.target >>-<< matrix.toolchain >>
63
+ - build_cmake :
64
+ context :
65
+ - mbedos-docker-hub-creds
66
+ requires :
67
+ - prepare
68
+ matrix :
69
+ parameters :
70
+ target : ["K64F", "DISCO_L475VG_IOT01A"]
71
+ toolchain : ["GCC_ARM"]
72
+ name : build-cmake-<< matrix.target >>-<< matrix.toolchain >>
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments