test-builds.yml 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. #
  2. # test-builds.yml
  3. # Do test builds to catch compile errors
  4. #
  5. name: CI
  6. on:
  7. pull_request:
  8. branches:
  9. - bugfix-2.0.x
  10. paths-ignore:
  11. - config/**
  12. - data/**
  13. - docs/**
  14. - '**/*.md'
  15. push:
  16. branches:
  17. - bugfix-2.0.x
  18. paths-ignore:
  19. - config/**
  20. - data/**
  21. - docs/**
  22. - '**/*.md'
  23. jobs:
  24. test_builds:
  25. name: Run All Tests
  26. if: github.repository == 'MarlinFirmware/Marlin'
  27. runs-on: ubuntu-latest
  28. strategy:
  29. matrix:
  30. test-platform:
  31. # Base Environments
  32. - DUE
  33. - esp32
  34. - linux_native
  35. - mega2560
  36. - teensy31
  37. - teensy35
  38. - teensy41
  39. - SAMD51_grandcentral_m4
  40. # Extended AVR Environments
  41. - FYSETC_F6_13
  42. - mega1280
  43. - rambo
  44. - sanguino1284p
  45. - sanguino644p
  46. # Extended STM32 Environments
  47. - STM32F103RC_btt
  48. - STM32F103RC_btt_USB
  49. - STM32F103RE_btt
  50. - STM32F103RE_btt_USB
  51. - STM32F103RC_fysetc
  52. - STM32F103RC_meeb
  53. - jgaurora_a5s_a1
  54. - STM32F103VE_longer
  55. - STM32F407VE_black
  56. - STM32F401VE_STEVAL
  57. - BIGTREE_BTT002
  58. - BIGTREE_SKR_PRO
  59. - BIGTREE_GTR_V1_0
  60. - mks_robin
  61. - mks_robin_stm32
  62. - ARMED
  63. - FYSETC_S6
  64. - STM32F070CB_malyan
  65. - STM32F070RB_malyan
  66. - malyan_M300
  67. - mks_robin_lite
  68. - FLYF407ZG
  69. - rumba32
  70. - mks_robin_pro
  71. - STM32F103RET6_creality
  72. - LERDGEX
  73. - mks_robin_nano35
  74. # Put lengthy tests last
  75. - LPC1768
  76. - LPC1769
  77. # STM32 with non-STM framework. both broken for now. they should use HAL_STM32 which is working.
  78. #- STM32F4
  79. #- STM32F7
  80. # Non-working environment tests
  81. #- at90usb1286_cdc
  82. #- at90usb1286_dfu
  83. #- STM32F103CB_malyan
  84. #- mks_robin_mini
  85. steps:
  86. - name: Select Python 3.7
  87. uses: actions/setup-python@v1
  88. with:
  89. python-version: '3.7' # Version range or exact version of a Python version to use, using semvers version range syntax.
  90. architecture: 'x64' # optional x64 or x86. Defaults to x64 if not specified
  91. - name: Install PlatformIO
  92. run: |
  93. pip install -U https://github.com/platformio/platformio-core/archive/develop.zip
  94. platformio update
  95. - name: Check out the PR
  96. uses: actions/checkout@v2
  97. - name: Run ${{ matrix.test-platform }} Tests
  98. run: |
  99. # Inline tests script
  100. chmod +x buildroot/bin/*
  101. chmod +x buildroot/tests/*
  102. export PATH=./buildroot/bin/:./buildroot/tests/:${PATH}
  103. run_tests . ${{ matrix.test-platform }}