|
| 1 | +name: Compile Examples |
| 2 | + |
| 3 | +on: |
| 4 | + pull_request: |
| 5 | + paths: |
| 6 | + - ".github/workflows/compile-examples.yml" |
| 7 | + - "examples/**" |
| 8 | + - "src/**" |
| 9 | + push: |
| 10 | + paths: |
| 11 | + - ".github/workflows/compile-examples.yml" |
| 12 | + - "examples/**" |
| 13 | + - "src/**" |
| 14 | + # Scheduled trigger checks for breakage caused by changes to external resources (libraries, platforms) |
| 15 | + schedule: |
| 16 | + # run every Saturday at 3 AM UTC |
| 17 | + - cron: "0 3 * * 6" |
| 18 | + # See: https://docs.github.com/en/free-pro-team@latest/actions/reference/events-that-trigger-workflows#workflow_dispatch |
| 19 | + workflow_dispatch: |
| 20 | + # See: https://docs.github.com/en/free-pro-team@latest/actions/reference/events-that-trigger-workflows#repository_dispatch |
| 21 | + repository_dispatch: |
| 22 | + |
| 23 | +jobs: |
| 24 | + build: |
| 25 | + runs-on: ubuntu-latest |
| 26 | + |
| 27 | + env: |
| 28 | + SKETCHES_REPORTS_PATH: sketches-reports |
| 29 | + |
| 30 | + strategy: |
| 31 | + fail-fast: false |
| 32 | + |
| 33 | + matrix: |
| 34 | + board: |
| 35 | + - fqbn: arduino:samd:mkrwifi1010 |
| 36 | + |
| 37 | + steps: |
| 38 | + - name: Checkout |
| 39 | + uses: actions/checkout@v2 |
| 40 | + |
| 41 | + - name: Compile examples |
| 42 | + uses: arduino/compile-sketches@main |
| 43 | + with: |
| 44 | + github-token: ${{ secrets.GITHUB_TOKEN }} |
| 45 | + fqbn: ${{ matrix.board.fqbn }} |
| 46 | + libraries: | |
| 47 | + # Install the library from the local path. |
| 48 | + - source-path: ./ |
| 49 | + # Install library dependencies. |
| 50 | + - name: Arduino_APDS9960 |
| 51 | + - name: Arduino_BQ24195 |
| 52 | + - name: Arduino_HTS221 |
| 53 | + - name: Arduino_LPS22HB |
| 54 | + - name: Arduino_LSM6DS3 |
| 55 | + - name: Adafruit BusIO |
| 56 | + - name: Adafruit DotStar |
| 57 | + - name: Adafruit GFX Library |
| 58 | + - name: Adafruit ST7735 and ST7789 Library |
| 59 | + - name: Arduino_MCHPTouch |
| 60 | + sketch-paths: | |
| 61 | + - ./examples/ |
| 62 | + enable-deltas-report: true |
| 63 | + sketches-report-path: ${{ env.SKETCHES_REPORTS_PATH }} |
| 64 | + |
| 65 | + - name: Save memory usage change report as artifact |
| 66 | + uses: actions/upload-artifact@v2 |
| 67 | + with: |
| 68 | + name: ${{ env.SKETCHES_REPORTS_PATH }} |
| 69 | + path: ${{ env.SKETCHES_REPORTS_PATH }} |
0 commit comments