Skip to content

Commit 0147fb9

Browse files
committed
CI: Prepare Rust modules
Adding Rust architecture modules for ensure compilation. Signed-off-by: TOKITA Hiroshi <[email protected]>
1 parent 64ad0bb commit 0147fb9

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/build.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,13 @@ jobs:
4040
git clone https://github.com/arduino/ArduinoCore-API.git $MODULE_PATH/../ArduinoCore-API
4141
cp -rfp $MODULE_PATH/../ArduinoCore-API/api $MODULE_PATH/cores/arduino/
4242
43+
- name: Setup Rust toolchain
44+
run: |
45+
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > rustup_install.sh
46+
bash rustup_install.sh -y
47+
rustup default stable
48+
rustup target add thumbv6m-none-eabi thumbv7em-none-eabihf thumbv7em-none-eabi thumbv7m-none-eabi
49+
4350
- name: Build fade
4451
run: |
4552
west build -p -b arduino_nano_33_ble/nrf52840/sense $MODULE_PATH/samples/fade

0 commit comments

Comments
 (0)