Marlin_Firmware/.github/workflows/test-builds.yml

143 lines
3.1 KiB
YAML
Raw Normal View History

2020-01-11 18:38:47 -06:00
#
# test-builds.yml
# Do test builds to catch compile errors
#
name: CI
on:
pull_request:
branches:
- bugfix-2.0.x
paths-ignore:
- config/**
- data/**
- docs/**
- '**/*.md'
2020-07-05 15:46:00 -05:00
push:
branches:
- bugfix-2.0.x
paths-ignore:
- config/**
- data/**
- docs/**
- '**/*.md'
2020-01-11 18:38:47 -06:00
jobs:
test_builds:
2020-07-05 15:41:29 -05:00
name: Run All Tests
if: github.repository == 'MarlinFirmware/Marlin'
2020-01-11 18:38:47 -06:00
runs-on: ubuntu-latest
strategy:
matrix:
test-platform:
# Base Environments
- DUE
2021-05-14 23:09:38 -05:00
- DUE_archim
2020-01-11 18:38:47 -06:00
- esp32
- linux_native
- mega2560
2021-05-14 23:09:38 -05:00
- at90usb1286_dfu
2020-01-11 18:38:47 -06:00
- teensy31
- teensy35
2020-09-22 17:36:59 -05:00
- teensy41
2020-02-13 23:28:18 -06:00
- SAMD51_grandcentral_m4
2020-01-11 18:38:47 -06:00
# Extended AVR Environments
2021-05-14 23:09:38 -05:00
- FYSETC_F6
- mega1280
2020-01-11 18:38:47 -06:00
- rambo
- sanguino1284p
- sanguino644p
2020-01-11 18:38:47 -06:00
2021-05-14 23:09:38 -05:00
# STM32F1 (Maple) Environments
2020-01-11 18:38:47 -06:00
#- STM32F103RC_btt_maple
- STM32F103RC_btt_USB_maple
2020-01-11 18:38:47 -06:00
- STM32F103RC_fysetc
- STM32F103RC_meeb
2020-01-11 18:38:47 -06:00
- jgaurora_a5s_a1
- STM32F103VE_longer
#- mks_robin_maple
2021-05-11 10:44:54 -05:00
- mks_robin_lite
- mks_robin_pro
#- mks_robin_nano35_maple
#- STM32F103RET6_creality_maple
2021-05-11 10:44:54 -05:00
# STM32 (ST) Environments
- STM32F103RC_btt
#- STM32F103RC_btt_USB
- STM32F103RE_btt
- STM32F103RE_btt_USB
- STM32F103RET6_creality
2020-01-11 18:38:47 -06:00
- STM32F407VE_black
2020-05-10 01:49:30 -05:00
- STM32F401VE_STEVAL
- BIGTREE_BTT002
2020-01-11 18:38:47 -06:00
- BIGTREE_SKR_PRO
- BIGTREE_GTR_V1_0
- mks_robin
2020-01-11 18:38:47 -06:00
- ARMED
- FYSETC_S6
- STM32F070CB_malyan
2020-05-10 01:49:30 -05:00
- STM32F070RB_malyan
2020-04-17 09:10:41 -05:00
- malyan_M300
2020-05-10 01:49:30 -05:00
- FLYF407ZG
- rumba32
2020-07-06 17:08:52 -05:00
- LERDGEX
- LERDGEK
- mks_robin_nano35
2021-05-14 23:09:38 -05:00
- NUCLEO_F767ZI
- REMRAM_V1
- BTT_SKR_SE_BX
- chitu_f103
2020-01-11 18:38:47 -06:00
# Put lengthy tests last
- LPC1768
- LPC1769
# Non-working environment tests
#- at90usb1286_cdc
#- STM32F103CB_malyan
2021-05-14 23:09:38 -05:00
#- STM32F103RE
2020-01-11 18:38:47 -06:00
#- mks_robin_mini
steps:
2021-06-06 03:49:23 -05:00
- name: Check out the PR
uses: actions/checkout@v2
- name: Cache pip
uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Cache PlatformIO
uses: actions/cache@v2
with:
path: ~/.platformio
key: ${{ runner.os }}-${{ hashFiles('**/lockfiles') }}
2020-01-11 18:38:47 -06:00
- name: Select Python 3.7
2021-06-06 03:49:23 -05:00
uses: actions/setup-python@v2
2020-01-11 18:38:47 -06:00
with:
python-version: '3.7' # Version range or exact version of a Python version to use, using semvers version range syntax.
architecture: 'x64' # optional x64 or x86. Defaults to x64 if not specified
- name: Install PlatformIO
run: |
2020-08-21 22:03:32 -05:00
pip install -U https://github.com/platformio/platformio-core/archive/develop.zip
2020-01-11 18:38:47 -06:00
platformio update
- name: Run ${{ matrix.test-platform }} Tests
run: |
2021-05-14 23:09:38 -05:00
make tests-single-ci TEST_TARGET=${{ matrix.test-platform }}