Skip to content

Commit f1f458f

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 f1f458f

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/build.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,15 @@ 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+
wget https://sh.rustup.rs
46+
mv index.html rustup_install.sh
47+
bash rustup_install.sh -y
48+
/root/.cargo/bin/rustup default stable
49+
/root/.cargo/bin/rustup target add thumbv6m-none-eabi thumbv7em-none-eabihf thumbv7em-none-eabi thumbv7m-none-eabi
50+
echo "/root/.cargo/bin" >> $GITHUB_PATH
51+
4352
- name: Build fade
4453
run: |
4554
west build -p -b arduino_nano_33_ble/nrf52840/sense $MODULE_PATH/samples/fade

0 commit comments

Comments
 (0)