Fix spacing #7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CMake Build Workflow | |
on: [push, pull_request] | |
env: | |
BUILD_TYPE: Release | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup Environment | |
run: | | |
echo "Setting up the environment" | |
sudo apt-get update | |
sudo apt-get install -y cmake gcc-arm-none-eabi libnewlib-arm-none-eabi build-essential | |
- name: Checkout Repository | |
uses: actions/checkout@v2 | |
- name: Setup PICO SDK | |
run: | | |
echo "Setting up PICO SDK" | |
git clone https://github.com/raspberrypi/pico-sdk.git | |
cd pico-sdk | |
git submodule update --init | |
echo "PICO_SDK_PATH=$(pwd)" >> $GITHUB_ENV | |
- name: Setup PICO Examples | |
run: | | |
echo "Setting up PICO Examples" | |
git clone https://github.com/raspberrypi/pico-examples.git | |
cd pico-examples | |
git submodule update --init | |
echo "PICO_EXAMPLES_PATH=$(pwd)" >> $GITHUB_ENV | |
- name: Setup PICO Extras | |
run: | | |
echo "Setting up PICO Extras" | |
git clone https://github.com/raspberrypi/pico-extras.git | |
cd pico-extras | |
git submodule update --init | |
echo "PICO_EXTRAS_PATH=$(pwd)" >> $GITHUB_ENV | |
- name: Setup FreeRTOS Kernel | |
run: | | |
echo "Setting up FreeRTOS Kernel" | |
git clone https://github.com/FreeRTOS/FreeRTOS-Kernel.git | |
cd FreeRTOS-Kernel | |
git submodule update --init | |
echo "FREERTOS_KERNEL_PATH=$(pwd)" >> $GITHUB_ENV | |
- name: Build Main Project | |
run: | | |
mkdir build | |
cd build | |
cmake .. -DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }} | |
make -j$(nproc) |