Update compile-sketch.yml #10
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: C/C++ CI | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
build_esp32: | |
name: build esp32 | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
fqbn: | |
- esp32:esp32:esp32 | |
steps: | |
# This step makes the contents of the repository available to the workflow | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
# For more information: https://github.com/arduino/compile-sketches#readme | |
- name: Compile sketch | |
uses: arduino/compile-sketches@v1 | |
with: | |
fqbn: ${{ matrix.fqbn }} | |
platforms: | | |
- name: esp32:esp32 | |
source-url: https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json | |
version: 2.0.13 | |
# The default is to compile for the Arduino Uno board. If you want to compile for other boards, use the `fqbn` input. | |
sketch-paths: | | |
# Configure the action to search all folders under the root of the repository for sketches and compile them. | |
# This is formatted as a YAML list, which makes it possible to have multiple sketch paths if needed. | |
- ./ | |
libraries: | | |
# The "blink" sketch being compiled in this demo doesn't use any libraries, so just use an empty list | |
- source-url: https://github.com/marcel-licence/ML_SynthTools.git | |
name: ML_SynthTools | |
- source-url: https://github.com/adafruit/Adafruit-GFX-Library.git | |
name: Adafruit_GFX_Library | |
version: 1.10.10 | |
- source-url: https://github.com/adafruit/Adafruit_SSD1306.git | |
name: Adafruit_SSD1306 | |
version: 2.4.5 | |
- source-url: https://github.com/adafruit/Adafruit_BusIO.git | |
name: Adafruit BusIO | |
version: 1.14.1 | |
build_rp2040: | |
name: build rp2040 | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
fqbn: | |
- rp2040:rp2040:rpipico | |
steps: | |
# This step makes the contents of the repository available to the workflow | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
# For more information: https://github.com/arduino/compile-sketches#readme | |
- name: Compile sketch | |
uses: arduino/compile-sketches@v1 | |
with: | |
fqbn: ${{ matrix.fqbn }} | |
platforms: | | |
- name: rp2040:rp2040 | |
source-url: https://github.com/earlephilhower/arduino-pico/releases/download/global/package_rp2040_index.json | |
# The default is to compile for the Arduino Uno board. If you want to compile for other boards, use the `fqbn` input. | |
sketch-paths: | | |
# Configure the action to search all folders under the root of the repository for sketches and compile them. | |
# This is formatted as a YAML list, which makes it possible to have multiple sketch paths if needed. | |
- ./ | |
libraries: | | |
# The "blink" sketch being compiled in this demo doesn't use any libraries, so just use an empty list | |
- source-url: https://github.com/marcel-licence/ML_SynthTools.git | |
name: ML_SynthTools |