ledMatrix example #7
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: Compile Arduino Nano 33 IoT Examples | |
| on: | |
| push: | |
| paths: | |
| - ".github/workflows/buildExamplesSAMD.yml" | |
| - "examples/**" | |
| - "src/**" | |
| pull_request: | |
| paths: | |
| - ".github/workflows/buildExamplesSAMD.yml" | |
| - "examples/**" | |
| - "src/**" | |
| workflow_dispatch: | |
| repository_dispatch: | |
| jobs: | |
| build: | |
| name: ${{ matrix.board.fqbn }} | |
| runs-on: ubuntu-latest | |
| env: | |
| SKETCHES_REPORTS_PATH: sketches-reports-samd | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| board: | |
| - fqbn: arduino:samd:nano_33_iot | |
| platforms: | | |
| - name: arduino:samd | |
| steps: | |
| - name: Install arduino-cli | |
| run: curl -fsSL https://raw.githubusercontent.com/arduino/arduino-cli/master/install.sh | BINDIR=/usr/local/bin sh | |
| - name: Install Ethernet | |
| run: arduino-cli lib install Ethernet | |
| - name: Install Ethernet | |
| run: arduino-cli lib install FlashStorage_SAMD | |
| - name: Install WiFiNINA | |
| run: arduino-cli lib install WiFiNINA | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Create compile directory without excluded examples | |
| run: | | |
| mkdir -p compile-examples | |
| cp -r examples/SAMD* compile-examples/ | |
| # You might want different exclusions for the SAMD board | |
| # For example, if there are UNO R4 WiFi specific examples: | |
| # find compile-examples -name "UNOR4_SpecificExample.ino" -delete | |
| - name: Compile examples | |
| uses: arduino/compile-sketches@v1 | |
| with: | |
| fqbn: ${{ matrix.board.fqbn }} | |
| platforms: ${{ matrix.board.platforms }} | |
| libraries: | | |
| # Install the library from the local path. | |
| - source-path: ./ | |
| sketch-paths: | | |
| - compile-examples | |
| enable-deltas-report: true | |
| sketches-report-path: ${{ env.SKETCHES_REPORTS_PATH }} | |
| - name: Save sketches report as workflow artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| if-no-files-found: error | |
| path: ${{ env.SKETCHES_REPORTS_PATH }} | |
| name: sketches-report-nano33iot |