Skip to content

Merge pull request #5 from jefflongo/ci-fix #14

Merge pull request #5 from jefflongo/ci-fix

Merge pull request #5 from jefflongo/ci-fix #14

Workflow file for this run

name: Build
on:
push:
branches: [ master ]
pull_request:
workflow_dispatch:
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install dependencies
run: |
pip install cmake-format
- name: Lint
run: |
find . \( -name CMakeLists.txt -o -name *.cmake \) -exec cmake-format --check {} +
compile:
name: Compile
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install dependencies
run: |
mkdir -p .deps
pip install cmake
wget -q https://armkeil.blob.core.windows.net/developer/Files/downloads/gnu/13.2.rel1/binrel/arm-gnu-toolchain-13.2.rel1-x86_64-arm-none-eabi.tar.xz -P .deps
tar -xf .deps/arm-gnu-toolchain-13.2.rel1-x86_64-arm-none-eabi.tar.xz -C .deps
echo "$(pwd)/.deps/arm-gnu-toolchain-13.2.Rel1-x86_64-arm-none-eabi/bin" >> $GITHUB_PATH
- name: Checkout STM32CubeL4
uses: actions/checkout@v3
with:
repository: STMicroelectronics/STM32CubeL4
submodules: true
path: ./STM32CubeL4
- name: Compile LL
run: cmake -S examples/blinky-ll --preset debug -DSTM32CUBEL4_PATH=$(pwd)/STM32CubeL4 && cmake --build examples/blinky-ll/build
- name: Compile HAL
run: cmake -S examples/blinky-hal --preset debug -DSTM32CUBEL4_PATH=$(pwd)/STM32CubeL4 && cmake --build examples/blinky-ll/build
- name: Compile Multiboard
run: cmake -S examples/blinky-multiboard --preset debug -DSTM32CUBEL4_PATH=$(pwd)/STM32CubeL4 && cmake --build examples/blinky-ll/build