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