mirror of
https://github.com/m5stack/M5Unit-METER.git
synced 2026-05-20 11:27:46 -07:00
Migrate Arduino build workflows from ArminJo to arduino/compile-sketches@v1
This commit is contained in:
@@ -131,16 +131,29 @@ jobs:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
# Build
|
||||
- name: Prepare libraries list
|
||||
id: libs
|
||||
run: |
|
||||
{
|
||||
echo "yaml<<EOF"
|
||||
echo "$REQUIRED_LIBRARIES" | tr ',' '\n' | while read -r lib; do
|
||||
echo "- name: $lib"
|
||||
done
|
||||
echo "- source-path: ./"
|
||||
echo "EOF"
|
||||
} >> "$GITHUB_OUTPUT"
|
||||
|
||||
- name: Compile examples
|
||||
uses: ArminJo/arduino-test-compile@master
|
||||
uses: arduino/compile-sketches@v1
|
||||
with:
|
||||
arduino-board-fqbn: ${{ matrix.platform }}:${{ matrix.archi }}:${{ matrix.board }}
|
||||
arduino-platform: ${{ matrix.platform }}:${{ matrix.archi }}@${{ matrix.platform-version }}
|
||||
platform-url: ${{ matrix.platform-url }}
|
||||
required-libraries: ${{ env.REQUIRED_LIBRARIES }}
|
||||
extra-arduino-cli-args: ${{ matrix.cli-args }}
|
||||
build-properties: ${{ matrix.build-properties }}
|
||||
sketch-names: ${{ matrix.sketch }}.ino
|
||||
sketch-names-find-start: ${{ env.SKETCH_NAMES_FIND_START }}/${{ matrix.unit }}
|
||||
#sketches-exclude: ${{ matrix.sketches-exclude }}
|
||||
fqbn: ${{ matrix.platform }}:${{ matrix.archi }}:${{ matrix.board }}
|
||||
platforms: |
|
||||
- name: ${{ matrix.platform }}:${{ matrix.archi }}
|
||||
source-url: ${{ matrix.platform-url }}
|
||||
version: ${{ matrix.platform-version }}
|
||||
libraries: ${{ steps.libs.outputs.yaml }}
|
||||
sketch-paths: |
|
||||
- ${{ env.SKETCH_NAMES_FIND_START }}/${{ matrix.unit }}/${{ matrix.sketch }}
|
||||
cli-compile-flags: |
|
||||
- --build-property
|
||||
- build.extra_flags=${{ matrix.build-properties }}
|
||||
|
||||
@@ -170,16 +170,29 @@ jobs:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
# Build
|
||||
- name: Prepare libraries list
|
||||
id: libs
|
||||
run: |
|
||||
{
|
||||
echo "yaml<<EOF"
|
||||
echo "$REQUIRED_LIBRARIES" | tr ',' '\n' | while read -r lib; do
|
||||
echo "- name: $lib"
|
||||
done
|
||||
echo "- source-path: ./"
|
||||
echo "EOF"
|
||||
} >> "$GITHUB_OUTPUT"
|
||||
|
||||
- name: Compile examples
|
||||
uses: ArminJo/arduino-test-compile@master
|
||||
uses: arduino/compile-sketches@v1
|
||||
with:
|
||||
arduino-board-fqbn: ${{ matrix.platform }}:${{ matrix.archi }}:${{ matrix.board }}
|
||||
arduino-platform: ${{ matrix.platform }}:${{ matrix.archi }}@${{ matrix.platform-version }}
|
||||
platform-url: ${{ matrix.platform-url }}
|
||||
required-libraries: ${{ env.REQUIRED_LIBRARIES }}
|
||||
extra-arduino-cli-args: ${{ matrix.cli-args }}
|
||||
build-properties: ${{ matrix.build-properties }}
|
||||
sketch-names: ${{ matrix.sketch }}.ino
|
||||
sketch-names-find-start: ${{ env.SKETCH_NAMES_FIND_START }}/${{ matrix.unit }}
|
||||
#sketches-exclude: ${{ matrix.sketches-exclude }}
|
||||
fqbn: ${{ matrix.platform }}:${{ matrix.archi }}:${{ matrix.board }}
|
||||
platforms: |
|
||||
- name: ${{ matrix.platform }}:${{ matrix.archi }}
|
||||
source-url: ${{ matrix.platform-url }}
|
||||
version: ${{ matrix.platform-version }}
|
||||
libraries: ${{ steps.libs.outputs.yaml }}
|
||||
sketch-paths: |
|
||||
- ${{ env.SKETCH_NAMES_FIND_START }}/${{ matrix.unit }}/${{ matrix.sketch }}
|
||||
cli-compile-flags: |
|
||||
- --build-property
|
||||
- build.extra_flags=${{ matrix.build-properties }}
|
||||
|
||||
@@ -191,16 +191,29 @@ jobs:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
# Build
|
||||
- name: Prepare libraries list
|
||||
id: libs
|
||||
run: |
|
||||
{
|
||||
echo "yaml<<EOF"
|
||||
echo "$REQUIRED_LIBRARIES" | tr ',' '\n' | while read -r lib; do
|
||||
echo "- name: $lib"
|
||||
done
|
||||
echo "- source-path: ./"
|
||||
echo "EOF"
|
||||
} >> "$GITHUB_OUTPUT"
|
||||
|
||||
- name: Compile examples
|
||||
uses: ArminJo/arduino-test-compile@master
|
||||
uses: arduino/compile-sketches@v1
|
||||
with:
|
||||
arduino-board-fqbn: ${{ matrix.platform }}:${{ matrix.archi }}:${{ matrix.board }}
|
||||
arduino-platform: ${{ matrix.platform }}:${{ matrix.archi }}@${{ matrix.platform-version }}
|
||||
platform-url: ${{ matrix.platform-url }}
|
||||
required-libraries: ${{ env.REQUIRED_LIBRARIES }}
|
||||
extra-arduino-cli-args: ${{ matrix.cli-args }}
|
||||
build-properties: ${{ matrix.build-properties }}
|
||||
sketch-names: ${{ matrix.sketch }}.ino
|
||||
sketch-names-find-start: ${{ env.SKETCH_NAMES_FIND_START }}/${{ matrix.unit }}
|
||||
#sketches-exclude: ${{ matrix.sketches-exclude }}
|
||||
fqbn: ${{ matrix.platform }}:${{ matrix.archi }}:${{ matrix.board }}
|
||||
platforms: |
|
||||
- name: ${{ matrix.platform }}:${{ matrix.archi }}
|
||||
source-url: ${{ matrix.platform-url }}
|
||||
version: ${{ matrix.platform-version }}
|
||||
libraries: ${{ steps.libs.outputs.yaml }}
|
||||
sketch-paths: |
|
||||
- ${{ env.SKETCH_NAMES_FIND_START }}/${{ matrix.unit }}/${{ matrix.sketch }}
|
||||
cli-compile-flags: |
|
||||
- --build-property
|
||||
- build.extra_flags=${{ matrix.build-properties }}
|
||||
|
||||
Reference in New Issue
Block a user