Merge branch 'master' of https://github.com/mirte-robot/Telemetrix4Ar… #13
This file contains hidden or 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: Arduino Compile | |
| on: | |
| push: | |
| pull_request: | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| board_fqbn: [ | |
| "nanoatmega328new", | |
| "robotdyn_blackpill_f303cc", | |
| "nanoatmega328", | |
| "adafruit_itsybitsy_m4", | |
| "program_via_AVRISP_mkII", | |
| "robotdyn_blackpill_f103", | |
| "pico", | |
| "esp32doit-devkit-v1", | |
| "pico2w" | |
| ] | |
| fail-fast: false | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: 'true' | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.x' | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install platformio | |
| # It is important to first install the libraries before compiling, since otherwise compilation might fail to find the just-installed libraries | |
| - name: Install platformIO libraries | |
| run: pio pkg install -e ${{ matrix.board_fqbn }} | |
| - name: Run PlatformIO | |
| run: platformio run -e ${{ matrix.board_fqbn }} | |