OUTPUT_OPEN_DRAIN, OUTPUT_OPEN_SOURCE for PiBoard compatibility #46
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: RP2040 | |
on: | |
workflow_dispatch: | |
pull_request: | |
paths: | |
- 'src/**' | |
- '.github/workflows/build_rp2040.yml' | |
push: | |
paths: | |
- 'src/**' | |
- '.github/workflows/build_rp2040.yml' | |
jobs: | |
rpipicow: | |
name: rp2040 ${{ matrix.sketches.name }} | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
sketches: | |
- name: serial | |
- name: ethernet | |
- name: wifi | |
board: | |
- fqbn: rp2040:rp2040:rpipicow | |
denko-target: rp2040 | |
platforms: | | |
- name: rp2040:rp2040 | |
source-url: https://github.com/earlephilhower/arduino-pico/releases/download/global/package_rp2040_index.json | |
libraries: | | |
- name: Servo | |
- name: IRremote | |
version: 4.1.2 | |
- name: Ethernet | |
- name: WiFi | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
submodules: true | |
- name: Generate | |
id: generate | |
run: echo "path=$(./bin/denko sketch ${{ matrix.sketches.name }} --target ${{ matrix.board.denko-target }})" >> $GITHUB_OUTPUT | |
- name: Compile Arduino Sketches | |
uses: arduino/[email protected] | |
with: | |
platforms: ${{ matrix.board.platforms }} | |
fqbn: ${{ matrix.board.fqbn }} | |
libraries: ${{ matrix.board.libraries }} | |
sketch-paths: | | |
- ${{ steps.generate.outputs.path }} |