Skip to content

Fixes test,workflows.Add more conditions #20

Fixes test,workflows.Add more conditions

Fixes test,workflows.Add more conditions #20

name: Build(platformio)
on:
push:
tags-ignore:
- '*.*.*'
- 'v*.*.*'
branches:
- '*'
paths:
- 'src/**.cpp'
- 'src/**.hpp'
- 'src/**.h'
- 'src/**.c'
- 'test/**.cpp'
- 'test/**.hpp'
- 'test/**.h'
- 'test/**.c'
- '**/platformio-build-check.yml'
- '**/platformio.ini'
pull_request:
paths:
- 'src/**.cpp'
- 'src/**.hpp'
- 'src/**.h'
- 'src/**.c'
- 'test/**.cpp'
- 'test/**.hpp'
- 'test/**.h'
- 'test/**.c'
- '**/platformio-build-check.yml'
- '**/platformio.ini'
workflow_dispatch:
defaults:
run:
shell: bash
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
native-test:
name: Native:Test
runs-on: ubuntu-latest
timeout-minutes: 12
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install --upgrade platformio
sudo apt-get update
sudo apt-get install -y libsdl2-dev
- name: Run native tests
run: |
pio test -e test_native -vv --project-dir ./ --project-conf ./platformio.ini
build:
name: ${{ matrix.board }}:${{ matrix.framework }}:${{ matrix.espressif32 }}
runs-on: ubuntu-latest
timeout-minutes: 12
strategy:
fail-fast: false
max-parallel: 20
matrix:
board:
- Core
- Core2
- CoreS3
- Fire
- StampS3
- Dial
- Atom
- AtomS3
- AtomS3R
- NanoC6
- NessoN1
- StickCPlus
- StickCPlus2
- StickS3
- Cardputer
- Paper
- CoreInk
- M5Tab
framework:
- Arduino
espressif32:
- latest
# - '5_4_0'
# - '4_4_0'
# exclude:
# - board: CoreS3
# espressif32: '5_4_0'
# - board: CoreS3
# espressif32: '4_4_0'
# - board: StampS3
# espressif32: '5_4_0'
# - board: StampS3
# espressif32: '4_4_0'
# - board: AtomS3
# espressif32: '5_4_0'
# - board: AtomS3
# espressif32: '4_4_0'
# - board: Dial
# espressif32: '5_4_0'
# - board: Dial
# espressif32: '4_4_0'
# - board: NanoC6
# espressif32: '5_4_0'
# - board: NanoC6
# espressif32: '4_4_0'
# - board: StickCPlus
# espressif32: '5_4_0'
# - board: StickCPlus
# espressif32: '4_4_0'
# - board: Paper
# espressif32: '5_4_0'
# - board: Paper
# espressif32: '4_4_0'
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build examples
uses: m5stack/M5Utility/.github/actions/pio_test_build@develop
with:
environments: test_${{ matrix.board }}
# targets:
project-dir: "./"
project-conf: "./platformio.ini"
# jobs: 6
# silent: false
# verbose: true
# disable-auto-clean: false