test-builds.yml 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  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.1.x
  10. paths-ignore:
  11. - config/**
  12. - data/**
  13. - docs/**
  14. - '**/*.md'
  15. push:
  16. branches:
  17. - bugfix-2.1.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. # Native
  32. - linux_native
  33. # AVR
  34. - mega2560
  35. - at90usb1286_dfu
  36. # AVR Extended
  37. - FYSETC_F6
  38. - mega1280
  39. - melzi_optiboot
  40. - rambo
  41. - sanguino1284p
  42. - sanguino644p
  43. # SAM3X8E
  44. - DUE
  45. - DUE_archim
  46. # SAMD21
  47. - SAMD51_grandcentral_m4
  48. - SAMD21_minitronics20
  49. # ESP32
  50. - esp32
  51. - mks_tinybee
  52. # Teensy 2
  53. #- at90usb1286_cdc
  54. # Teensy MK20DX256
  55. - teensy31
  56. # Teensy MK64FX512, MK66FX1M0
  57. - teensy35
  58. # Teensy IMXRT1062DVx6A
  59. - teensy41
  60. # STM32F0
  61. - malyan_M300
  62. - STM32F070CB_malyan
  63. - STM32F070RB_malyan
  64. # STM32F1
  65. - chitu_f103
  66. - mks_robin
  67. - mks_robin_nano_v1v2
  68. - PANDA_PI_V29
  69. - STM32F103RC_btt
  70. - STM32F103RC_fysetc
  71. - STM32F103RE_btt
  72. - STM32F103RE_btt_USB
  73. - STM32F103RE_creality
  74. - STM32F103VE_longer
  75. #- mks_robin_mini
  76. #- mks_robin_nano_v1_3_f4_usbmod
  77. #- mks_robin_nano_v1v2_usbmod
  78. #- STM32F103CB_malyan
  79. #- STM32F103RC_btt_USB
  80. #- STM32F103RE
  81. # STM32F4
  82. - ARMED
  83. - BIGTREE_BTT002
  84. - BIGTREE_GTR_V1_0
  85. - BIGTREE_SKR_PRO
  86. - FLYF407ZG
  87. - FYSETC_S6
  88. - LERDGEK
  89. - LERDGEX
  90. - Opulo_Lumen_REV3
  91. - rumba32
  92. - STM32F401RC_creality
  93. - STM32F407VE_black
  94. # STM32F7
  95. - NUCLEO_F767ZI
  96. - REMRAM_V1
  97. # STM32H7
  98. - BTT_SKR_SE_BX
  99. # STM32F1 (Maple)
  100. - jgaurora_a5s_a1_maple
  101. - mks_robin_lite_maple
  102. - mks_robin_pro_maple
  103. - STM32F103RC_btt_USB_maple
  104. - STM32F103RC_fysetc_maple
  105. - STM32F103RC_meeb_maple
  106. - STM32F103VE_longer_maple
  107. - STM32F103VE_ZM3E4V2_USB_maple
  108. #- mks_robin_maple
  109. #- mks_robin_nano_v1v2_maple
  110. #- STM32F103RC_btt_maple
  111. #- STM32F103RE_creality_maple
  112. # LPC176x - Lengthy tests
  113. - LPC1768
  114. - LPC1769
  115. steps:
  116. - name: Check out the PR
  117. uses: actions/checkout@v3
  118. - name: Cache pip
  119. uses: actions/cache@v3
  120. with:
  121. path: ~/.cache/pip
  122. key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
  123. restore-keys: |
  124. ${{ runner.os }}-pip-
  125. - name: Cache PlatformIO
  126. uses: actions/cache@v3
  127. with:
  128. path: ~/.platformio
  129. key: ${{ runner.os }}-${{ hashFiles('**/lockfiles') }}
  130. - name: Select Python 3.7
  131. uses: actions/setup-python@v3
  132. with:
  133. python-version: '3.7' # Version range or exact version of a Python version to use, using semvers version range syntax.
  134. architecture: 'x64' # optional x64 or x86. Defaults to x64 if not specified
  135. - name: Install PlatformIO
  136. run: |
  137. pip install -U platformio
  138. pio upgrade --dev
  139. pio pkg update --global
  140. - name: Run ${{ matrix.test-platform }} Tests
  141. run: |
  142. make tests-single-ci TEST_TARGET=${{ matrix.test-platform }}