pico-hsm/workflows/autobuild.sh
Pol Henarejos 215221b30e
Let's add pico and local CodeQL modes.
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
2024-01-02 20:51:08 +01:00

17 lines
393 B
Bash
Executable file

#!/bin/bash
git submodule update --init --recursive
sudo apt update
sudo apt install -y cmake gcc-arm-none-eabi libnewlib-arm-none-eabi libstdc++-arm-none-eabi-newlib
git clone https://github.com/raspberrypi/pico-sdk
cd pico-sdk
git submodule update --init
cd ..
mkdir build
cd build
if [[ $1 == "pico" ]]; then
cmake -DPICO_SDK_PATH=../pico-sdk ..
else
cmake -DENABLE_EMULATION=1 ..
fi
make