Use owner-based platform declaration // Resolve #4962 #1514
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Examples | |
on: [push, pull_request] | |
jobs: | |
build: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, windows-latest, macos-latest] | |
runs-on: ${{ matrix.os }} | |
env: | |
PIO_INSTALL_DEVPLATFORM_OWNERNAMES: "platformio" | |
PIO_INSTALL_DEVPLATFORM_NAMES: "aceinna_imu,atmelavr,atmelmegaavr,atmelsam,espressif32,espressif8266,nordicnrf52,raspberrypi,ststm32,teensy" | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: "recursive" | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.11" | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install tox | |
- name: Run on Linux | |
if: startsWith(matrix.os, 'ubuntu') | |
run: | | |
# Free space | |
sudo apt clean | |
docker rmi $(docker image ls -aq) | |
df -h | |
tox -e testexamples | |
- name: Run on macOS | |
if: startsWith(matrix.os, 'macos') | |
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 | |
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 }} | |
token: ${{ secrets.SLACK_GITHUB_TOKEN }} |