@@ -47,7 +47,7 @@ concurrency:
4747jobs :
4848 build :
4949 name : ${{ matrix.build-properties }}:${{ matrix.sketch }}:${{matrix.board}}@${{matrix.platform-version}}
50- runs-on : ${{ github.event.repository.private && 'self-hosted' || ' ubuntu-latest' }}
50+ runs-on : ubuntu-latest
5151 timeout-minutes : 12
5252
5353 strategy :
@@ -160,16 +160,29 @@ jobs:
160160 - name : Checkout
161161 uses : actions/checkout@v4
162162
163- # Build
163+ - name : Prepare libraries list
164+ id : libs
165+ run : |
166+ {
167+ echo "yaml<<EOF"
168+ echo "$REQUIRED_LIBRARIES" | tr ',' '\n' | while read -r lib; do
169+ echo "- name: $lib"
170+ done
171+ echo "- source-path: ./"
172+ echo "EOF"
173+ } >> "$GITHUB_OUTPUT"
174+
164175 - name : Compile examples
165- uses : ArminJo/ arduino-test- compile@master
176+ uses : arduino/ compile-sketches@v1
166177 with :
167- arduino-board-fqbn : ${{ matrix.platform }}:${{ matrix.archi }}:${{ matrix.board }}
168- arduino-platform : ${{ matrix.platform }}:${{ matrix.archi }}@${{ matrix.platform-version }}
169- platform-url : ${{ matrix.platform-url }}
170- required-libraries : ${{ env.REQUIRED_LIBRARIES }}
171- extra-arduino-cli-args : ${{ matrix.cli-args }}
172- build-properties : ${{ matrix.build-properties }}
173- sketch-names : ${{ matrix.sketch }}.ino
174- sketch-names-find-start : ${{ env.SKETCH_NAMES_FIND_START }}/
175- # sketches-exclude: ${{ matrix.sketches-exclude }}
178+ fqbn : ${{ matrix.platform }}:${{ matrix.archi }}:${{ matrix.board }}
179+ platforms : |
180+ - name: ${{ matrix.platform }}:${{ matrix.archi }}
181+ source-url: ${{ matrix.platform-url }}
182+ version: ${{ matrix.platform-version }}
183+ libraries : ${{ steps.libs.outputs.yaml }}
184+ sketch-paths : |
185+ - examples/UnitUnified/${{ matrix.sketch }}
186+ cli-compile-flags : |
187+ - --build-property
188+ - build.extra_flags=${{ matrix.build-properties }}
0 commit comments