SD - examples/listfilesEnhanced #788
Workflow file for this run
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
# 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 |