Skip to content

Merge pull request #26 from AlexLanzano/i2c #106

Merge pull request #26 from AlexLanzano/i2c

Merge pull request #26 from AlexLanzano/i2c #106

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
core-tests:
runs-on: ubuntu-latest
strategy:
matrix:
extra_cflags: ["", "-DWHAL_CFG_NO_TIMEOUT"]
steps:
- uses: actions/checkout@v4
- name: Build and run core tests
working-directory: tests/core
run: CFLAGS="${{ matrix.extra_cflags }}" make run
boards:
runs-on: ubuntu-latest
strategy:
matrix:
board: [stm32wb55xx_nucleo, pic32cz_curiosity_ultra, stm32h563zi_nucleo, stm32f411_blackpill, stm32c031_nucleo]
extra_cflags: ["", "-DWHAL_CFG_NO_TIMEOUT"]
include:
- board: stm32wb55xx_nucleo
extra_cflags: "-DBOARD_DMA"
steps:
- uses: actions/checkout@v4
- name: Install ARM toolchain
run: sudo apt-get update && sudo apt-get install -y gcc-arm-none-eabi
- name: Build blinky
working-directory: examples/blinky
run: CFLAGS="${{ matrix.extra_cflags }}" make BOARD=${{ matrix.board }}
- name: Build tests
working-directory: tests
run: CFLAGS="${{ matrix.extra_cflags }}" make BOARD=${{ matrix.board }}
peripheral-tests:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- board: stm32wb55xx_nucleo
peripherals: bmi270
tests: bmi270
- board: stm32wb55xx_nucleo
peripherals: spi_nor_w25q64
tests: flash
- board: stm32wb55xx_nucleo
peripherals: sdhc_spi_sdcard32gb
tests: block
steps:
- uses: actions/checkout@v4
- name: Install ARM toolchain
run: sudo apt-get update && sudo apt-get install -y gcc-arm-none-eabi
- name: Build tests
working-directory: tests
run: make BOARD=${{ matrix.board }} PERIPHERALS="${{ matrix.peripherals }}" TESTS="${{ matrix.tests }}"