Spanish to english comments #66
Workflow file for this run
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: build | |
| on: [push, pull_request] | |
| jobs: | |
| build: | |
| strategy: | |
| matrix: | |
| project_dir: ["Firmware_Arduino", "Firmware_ESP8266"] | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| - name: Setup Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.x" | |
| - name: Cache PlatformIO | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/.platformio | |
| key: pio-${{ runner.os }}-${{ hashFiles(format('{0}/platformio.ini', matrix.project_dir)) }} | |
| restore-keys: | | |
| pio-${{ runner.os }}- | |
| - name: Install PlatformIO Core | |
| run: pip install -U platformio | |
| # Builds all environments defined in platformio.ini; use -e for environment matrix | |
| - name: Build ${{ matrix.project_dir }} | |
| working-directory: ${{ matrix.project_dir }} | |
| run: | | |
| pio run | |
| # If defining environment matrix: pio run -e ${{ matrix.env }} | |
| # Upload generated artifacts; hex for AVR; bin for ESP8266 | |
| - name: Upload artifacts | |
| if: always() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: ${{ matrix.project_dir }}-artifacts | |
| path: | | |
| ${{ matrix.project_dir }}/.pio/build/*/*.hex | |
| ${{ matrix.project_dir }}/.pio/build/*/*.bin | |
| ${{ matrix.project_dir }}/.pio/build/*/*.elf |