8000
# We do not distribute any environment settings, so just try to build some sketches | |
# using the 'master' branch and using the uploaded toolchain version via get.py | |
# Also, limit the amount of sketches and simply | |
name: Build examples with PlatformIO | |
on: | |
pull_request: | |
permissions: | |
contents: read | |
jobs: | |
build-pio: | |
name: Linux (random sketches) | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
shell: bash | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: '3.x' | |
- uses: actions/cache@v4 | |
with: | |
path: | | |
tools/dist | |
~/.cache/pip | |
~/.platformio/.cache | |
key: ${{ runner.os }}-${{ hashFiles('package/package_esp8266com_index.template.json', 'tests/common.sh', 'tests/build.sh') }} | |
- name: Build | |
env: | |
ESP8266_ARDUINO_BUILDER: "platformio" | |
run: | | |
pip install -U platformio | |
env ESP8266_ARDUINO_SKETCHES="$(find libraries/ -name '*.ino' | shuf -n 10 -)" bash ./tests/build.sh |