ci.yml 726 B

12345678910111213141516171819202122232425262728293031323334
  1. on: [push, pull_request]
  2. name: Continuous integration
  3. jobs:
  4. ci:
  5. runs-on: ubuntu-latest
  6. strategy:
  7. matrix:
  8. mcu:
  9. - stm32f100
  10. - stm32f101
  11. - stm32f103
  12. - stm32f105
  13. - stm32f107
  14. rust:
  15. - stable
  16. include:
  17. - rust: nightly
  18. mcu: stm32f103
  19. experimental: true
  20. steps:
  21. - uses: actions/checkout@v2
  22. - uses: actions-rs/toolchain@v1
  23. with:
  24. profile: minimal
  25. toolchain: ${{ matrix.rust }}
  26. target: thumbv7m-none-eabi
  27. override: true
  28. - uses: actions-rs/cargo@v1
  29. with:
  30. command: build
  31. args: --features=${{ matrix.mcu }}