Skip to content

Commit 8808eff

Browse files
add k64 and optimise ci build (#97)
1 parent a0abedf commit 8808eff

File tree

2 files changed

+26
-7
lines changed

2 files changed

+26
-7
lines changed

.circleci/config.yml

Lines changed: 25 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,7 @@ jobs:
1414
- run: |
1515
cd mbed-os-example-nfc
1616
git clone https://github.com/ARMmbed/mbed-os.git
17-
- run:
18-
working_directory: mbed-os-example-nfc
19-
command: for i in NFC_* ; do cd $i ; ln -s $PWD/../mbed-os mbed-os ; cd .. ; done
17+
for i in NFC_* ; do cd $i ; ln -s $PWD/../mbed-os mbed-os ; mbed update ; cd .. ; done
2018
- persist_to_workspace:
2119
root: /root/project
2220
paths: mbed-os-example-nfc
@@ -31,7 +29,6 @@ jobs:
3129
- run: |
3230
cd mbed-os-example-nfc
3331
cd NFC_SmartPoster
34-
mbed update
3532
mbed compile -t GCC_ARM -m NUCLEO_F401RE || exit 1
3633
3734
build_disco_l475vg:
@@ -44,7 +41,6 @@ jobs:
4441
- run: |
4542
cd mbed-os-example-nfc
4643
cd NFC_EEPROM
47-
mbed update
4844
mbed compile -t GCC_ARM -m DISCO_L475VG_IOT01A || exit 1
4945
5046
cmake_NUCLEO_F401RE:
@@ -58,8 +54,13 @@ jobs:
5854
- run: |
5955
cd mbed-os-example-nfc
6056
cd NFC_SmartPoster
61-
mbed update
6257
mbed-tools compile -t GCC_ARM -m NUCLEO_F401RE || exit 1
58+
mbed-tools compile -t ARM -m NUCLEO_F401RE || exit 1
59+
- run: |
60+
cd mbed-os-example-nfc
61+
cd NFC_EEPROM
62+
mbed-tools compile -t GCC_ARM -m NUCLEO_F401RE || exit 1
63+
mbed-tools compile -t ARM -m NUCLEO_F401RE || exit 1
6364
6465
cmake_disco_l475vg:
6566
docker:
@@ -72,8 +73,22 @@ jobs:
7273
- run: |
7374
cd mbed-os-example-nfc
7475
cd NFC_EEPROM
75-
mbed update
7676
mbed-tools compile -t GCC_ARM -m DISCO_L475VG_IOT01A || exit 1
77+
mbed-tools compile -t ARM -m DISCO_L475VG_IOT01A || exit 1
78+
79+
cmake_k64f:
80+
docker:
81+
- image: mbedos/mbed-os-env:latest
82+
working_directory: ~
83+
steps:
84+
- attach_workspace:
85+
at: /root/project
86+
- run: python3 -m pip install mbed-tools --upgrade # remove after docker imagine fixed to contain new tools
87+
- run: |
88+
cd mbed-os-example-nfc
89+
cd NFC_EEPROM
90+
mbed-tools compile -t GCC_ARM -m K64F || exit 1
91+
mbed-tools compile -t ARM -m K64F || exit 1
7792
7893
workflows:
7994
version: 2
@@ -92,3 +107,6 @@ workflows:
92107
- cmake_disco_l475vg:
93108
requires:
94109
- prepare
110+
- cmake_k64f:
111+
requires:
112+
- prepare

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ yotta_targets/
3535
# clion
3636
.idea/
3737
cmake-build-*/
38+
cmake_build/
3839

3940
# exporters
4041
GettingStarted.html

0 commit comments

Comments
 (0)