65 lines
1.9 KiB
YAML
65 lines
1.9 KiB
YAML
name: Examples
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
build:
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
os: [ubuntu-16.04, windows-latest, macos-latest]
|
|
python-version: [2.7, 3.7]
|
|
runs-on: ${{ matrix.os }}
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
with:
|
|
submodules: "recursive"
|
|
- name: Set up Python ${{ matrix.python-version }}
|
|
uses: actions/setup-python@v1
|
|
with:
|
|
python-version: ${{ matrix.python-version }}
|
|
- name: Install dependencies
|
|
run: |
|
|
python -m pip install --upgrade pip
|
|
pip install tox
|
|
|
|
- name: Run on Linux
|
|
if: startsWith(matrix.os, 'ubuntu')
|
|
env:
|
|
PIO_INSTALL_DEVPLATFORMS_IGNORE: "ststm8,infineonxmc,siwigsm,intel_mcs51,aceinna_imu,tokisaki"
|
|
run: |
|
|
# ChipKIT issue: install 32-bit support for GCC PIC32
|
|
sudo apt-get install libc6-i386
|
|
# Free space
|
|
sudo apt clean
|
|
docker rmi $(docker image ls -aq)
|
|
df -h
|
|
# Run
|
|
tox -e testexamples
|
|
|
|
- name: Run on macOS
|
|
if: startsWith(matrix.os, 'macos')
|
|
env:
|
|
PIO_INSTALL_DEVPLATFORMS_IGNORE: "ststm8,infineonxmc,siwigsm,microchippic32,gd32v,nuclei,lattice_ice40,tokisaki"
|
|
run: |
|
|
df -h
|
|
tox -e testexamples
|
|
|
|
- name: Run on Windows
|
|
if: startsWith(matrix.os, 'windows')
|
|
env:
|
|
PLATFORMIO_CORE_DIR: C:/pio
|
|
PLATFORMIO_WORKSPACE_DIR: C:/pio-workspace/$PROJECT_HASH
|
|
PIO_INSTALL_DEVPLATFORMS_IGNORE: "ststm8,infineonxmc,siwigsm,riscv_gap,tokisaki"
|
|
run: |
|
|
tox -e testexamples
|
|
|
|
- name: Slack Notification
|
|
uses: homoluctus/slatify@master
|
|
if: failure()
|
|
with:
|
|
type: ${{ job.status }}
|
|
job_name: '*Examples*'
|
|
commit: true
|
|
url: ${{ secrets.SLACK_BUILD_WEBHOOK }}
|