|
14 | 14 | env:
|
15 | 15 | ZEPHYR_SDK_INSTALL_DIR: /opt/zephyr-sdk-0.16.8
|
16 | 16 | CCACHE_IGNOREOPTIONS: -specs=*
|
| 17 | + outputs: |
| 18 | + CORE_TAG: ${{ env.CORE_TAG }} |
| 19 | + CORE_ARTIFACT: ${{ env.CORE_ARTIFACT }} |
| 20 | + BOARD_NAMES: ${{ env.BOARD_NAMES }} |
17 | 21 | steps:
|
18 | 22 | - name: Install toolchain
|
19 | 23 | working-directory: /opt
|
@@ -55,23 +59,40 @@ jobs:
|
55 | 59 | name: ${{ env.CORE_ARTIFACT }}
|
56 | 60 | path: ${{ env.CORE_ARTIFACT }}.tar.bz2
|
57 | 61 |
|
| 62 | + test-core: |
| 63 | + name: Test arduino:zephyr:${{ matrix.board }} |
| 64 | + runs-on: ubuntu-latest |
| 65 | + needs: package-core |
| 66 | + strategy: |
| 67 | + matrix: |
| 68 | + board: ${{ fromJSON( needs.package-core.outputs.BOARD_NAMES ) }} |
| 69 | + fail-fast: false |
| 70 | + env: |
| 71 | + FQBN: arduino:zephyr:${{ matrix.board }} |
| 72 | + steps: |
| 73 | + - uses: actions/download-artifact@v4 |
| 74 | + with: |
| 75 | + name: ${{ needs.package-core.outputs.CORE_ARTIFACT }} |
| 76 | + |
| 77 | + - name: Set up core |
| 78 | + run: | |
| 79 | + tar xf ${{ needs.package-core.outputs.CORE_ARTIFACT }}.tar.bz2 |
| 80 | +
|
58 | 81 | - name: Create Blink sketch
|
59 | 82 | run: |
|
60 |
| - mkdir extra/Blink/ |
61 |
| - wget https://raw.githubusercontent.com/arduino/arduino-examples/refs/heads/main/examples/01.Basics/Blink/Blink.ino |
62 |
| - mv Blink.ino extra/Blink/ |
| 83 | + mkdir Blink/ |
| 84 | + wget -nv https://raw.githubusercontent.com/arduino/arduino-examples/refs/heads/main/examples/01.Basics/Blink/Blink.ino -P Blink/ |
63 | 85 |
|
64 |
| - - name: Compile Blink |
| 86 | + - name: Compile Blink for ${{ env.FQBN }} |
65 | 87 | uses: arduino/compile-sketches@main
|
66 | 88 | with:
|
67 |
| - fqbn: arduino:zephyr:giga |
| 89 | + fqbn: ${{ env.FQBN }} |
68 | 90 | platforms: |
|
69 | 91 | # Use Board Manager to install the latest release of Arduino Zephyr Boards to get the toolchain
|
70 | 92 | - name: "arduino:zephyr"
|
71 | 93 | source-url: "https://downloads.arduino.cc/packages/package_zephyr_index.json"
|
72 |
| - - source-path: "./" |
73 |
| - name: "arduino:zephyr" |
74 |
| - sketch-paths: | |
75 |
| - extra/Blink |
| 94 | + - name: "arduino:zephyr" |
| 95 | + source-path: "ArduinoCore-zephyr" |
| 96 | + sketch-paths: Blink |
76 | 97 | verbose: 'false'
|
77 | 98 | enable-deltas-report: 'false'
|
0 commit comments