2020-01-11 19:38:47 -05: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 16:45:14 -04:00
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- bugfix-2.0.x
|
|
|
|
paths-ignore:
|
|
|
|
- config/**
|
|
|
|
- data/**
|
|
|
|
- docs/**
|
|
|
|
- '**/*.md'
|
2020-01-11 19:38:47 -05:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
test_builds:
|
2020-07-05 16:23:07 -04:00
|
|
|
name: Run All Tests
|
|
|
|
if: github.repository == 'MarlinFirmware/Marlin'
|
2020-01-11 19:38:47 -05:00
|
|
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
test-platform:
|
|
|
|
# Base Environments
|
|
|
|
|
|
|
|
- DUE
|
|
|
|
- esp32
|
|
|
|
- linux_native
|
2020-03-01 18:39:46 -05:00
|
|
|
- mega2560
|
2020-01-11 19:38:47 -05:00
|
|
|
- teensy31
|
|
|
|
- teensy35
|
2020-02-14 00:28:18 -05:00
|
|
|
- SAMD51_grandcentral_m4
|
2020-01-11 19:38:47 -05:00
|
|
|
|
|
|
|
# Extended AVR Environments
|
|
|
|
|
|
|
|
- FYSETC_F6_13
|
2020-03-01 18:39:46 -05:00
|
|
|
- mega1280
|
2020-01-11 19:38:47 -05:00
|
|
|
- rambo
|
2020-03-01 18:39:46 -05:00
|
|
|
- sanguino1284p
|
|
|
|
- sanguino644p
|
2020-01-11 19:38:47 -05:00
|
|
|
|
|
|
|
# Extended STM32 Environments
|
|
|
|
|
2020-03-01 18:39:46 -05:00
|
|
|
- STM32F103RC_btt
|
|
|
|
- STM32F103RC_btt_USB
|
|
|
|
- STM32F103RE_btt
|
|
|
|
- STM32F103RE_btt_USB
|
2020-01-11 19:38:47 -05:00
|
|
|
- STM32F103RC_fysetc
|
|
|
|
- jgaurora_a5s_a1
|
|
|
|
- STM32F103VE_longer
|
|
|
|
- STM32F407VE_black
|
|
|
|
- BIGTREE_SKR_PRO
|
2020-03-01 22:19:02 -05:00
|
|
|
- BIGTREE_GTR_V1_0
|
2020-01-11 19:38:47 -05:00
|
|
|
- mks_robin
|
|
|
|
- ARMED
|
2020-01-14 16:36:47 -05:00
|
|
|
- FYSETC_S6
|
2020-01-11 19:38:47 -05:00
|
|
|
|
|
|
|
# Put lengthy tests last
|
|
|
|
|
|
|
|
- LPC1768
|
|
|
|
- LPC1769
|
|
|
|
|
|
|
|
# STM32 with non-STM framework. both broken for now. they should use HAL_STM32 which is working.
|
|
|
|
|
|
|
|
#- STM32F4
|
|
|
|
#- STM32F7
|
|
|
|
|
|
|
|
# Non-working environment tests
|
|
|
|
|
|
|
|
#- BIGTREE_BTT002
|
|
|
|
#- at90usb1286_cdc
|
|
|
|
#- at90usb1286_dfu
|
|
|
|
#- STM32F103CB_malyan
|
|
|
|
#- mks_robin_lite
|
|
|
|
#- mks_robin_mini
|
|
|
|
#- mks_robin_nano
|
|
|
|
|
|
|
|
steps:
|
|
|
|
|
|
|
|
- name: Select Python 3.7
|
|
|
|
uses: actions/setup-python@v1
|
|
|
|
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: |
|
|
|
|
pip install -U https://github.com/platformio/platformio-core/archive/master.zip
|
|
|
|
platformio update
|
|
|
|
|
|
|
|
- name: Check out the PR
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Run ${{ matrix.test-platform }} Tests
|
|
|
|
run: |
|
|
|
|
# Inline tests script
|
|
|
|
[[ "$GITHUB_REPOSITORY" == "MarlinFirmware/Marlin" ]] || exit 0
|
|
|
|
chmod +x buildroot/bin/*
|
|
|
|
chmod +x buildroot/share/tests/*
|
|
|
|
export PATH=./buildroot/bin/:./buildroot/share/tests/:${PATH}
|
|
|
|
run_tests . ${{ matrix.test-platform }}
|