Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: add ci #66

Merged
merged 1 commit into from
Oct 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
232 changes: 232 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,232 @@
on:
push:
branches:
- main
- develop
paths-ignore:
- .git*
- '**.md'
- '*.properties'
pull_request:
branches:
- main
- develop
paths-ignore:
- .git*
- '**.md'
- '*.properties'

jobs:
build-wifi:
name: 'Build Test (WiFi): ${{matrix.board.arch}}:${{matrix.board.name}}'
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
board:
- vendor: esp8266
arch: esp8266
name: generic
- vendor: esp32
arch: esp32
name: esp32
- vendor: esp32
arch: esp32
name: esp32s3
- vendor: esp32
arch: esp32
name: esp32c3
- vendor: rp2040
arch: rp2040
name: rpipicow
include:
- index: https://arduino.esp8266.com/stable/package_esp8266com_index.json
board:
vendor: esp8266
- index: https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json
board:
vendor: esp32
- index: https://github.com/earlephilhower/arduino-pico/releases/download/global/package_rp2040_index.json
board:
vendor: rp2040
steps:
- uses: actions/checkout@v4
- name: compile example sketchs
uses: arduino/compile-sketches@v1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
fqbn: ${{matrix.board.vendor}}:${{matrix.board.arch}}:${{matrix.board.name}}
platforms: |
- name: ${{matrix.board.vendor}}:${{matrix.board.arch}}
source-url: ${{matrix.index}}
sketch-paths: |
- examples/WiFi
libraries: |
- source-path: ./
- name: WiFi
- name: FastLED
verbose: true

build-wifinina:
name: 'Build Test (WiFiNINA): ${{matrix.board.arch}}:${{matrix.board.name}}'
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
board:
- vendor: arduino
arch: megaavr
name: uno2018
- vendor: arduino
arch: samd
name: mkrvidor4000
- vendor: arduino
arch: samd
name: mkrwifi1010
- vendor: arduino
arch: samd
name: nano_33_iot
include:
- index: https://downloads.arduino.cc/packages/package_index.json
board:
vendor: arduino
steps:
- uses: actions/checkout@v4
- name: compile example sketchs
uses: arduino/compile-sketches@v1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
fqbn: ${{matrix.board.vendor}}:${{matrix.board.arch}}:${{matrix.board.name}}
platforms: |
- name: ${{matrix.board.vendor}}:${{matrix.board.arch}}
source-url: ${{matrix.index}}
sketch-paths: |
- examples/WiFi/receiver
- examples/WiFi/sender
libraries: |
- source-path: ./
- name: WiFiNINA
- name: VidorPeripherals
- name: FastLED
verbose: true

build-ethernet:
name: 'Build Test (Ethernet): ${{matrix.board.arch}}:${{matrix.board.name}}'
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
board:
- vendor: arduino
arch: avr
name: uno
- vendor: arduino
arch: megaavr
name: uno2018
- vendor: arduino
arch: samd
name: mkrvidor4000
- vendor: arduino
arch: samd
name: mkrwifi1010
- vendor: arduino
arch: samd
name: mkr1000
- vendor: arduino
arch: samd
name: nano_33_iot
- vendor: esp8266
arch: esp8266
name: generic
- vendor: esp32
arch: esp32
name: esp32
- vendor: esp32
arch: esp32
name: esp32s3
- vendor: esp32
arch: esp32
name: esp32c3
- vendor: rp2040
arch: rp2040
name: rpipicow
- vendor: teensy
arch: avr
name: teensy35
- vendor: teensy
arch: avr
name: teensy36
- vendor: teensy
arch: avr
name: teensy41
include:
- index: https://downloads.arduino.cc/packages/package_index.json
board:
vendor: arduino
- index: https://arduino.esp8266.com/stable/package_esp8266com_index.json
board:
vendor: esp8266
- index: https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json
board:
vendor: esp32
- index: https://github.com/earlephilhower/arduino-pico/releases/download/global/package_rp2040_index.json
board:
vendor: rp2040
- index: https://www.pjrc.com/teensy/package_teensy_index.json
board:
vendor: teensy
steps:
- uses: actions/checkout@v4
- name: compile example sketchs
uses: arduino/compile-sketches@v1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
fqbn: ${{matrix.board.vendor}}:${{matrix.board.arch}}:${{matrix.board.name}}
platforms: |
- name: ${{matrix.board.vendor}}:${{matrix.board.arch}}
source-url: ${{matrix.index}}
sketch-paths: |
- examples/Ethernet/receiver
- examples/Ethernet/sender
libraries: |
- source-path: ./
- name: Ethernet
- name: FastLED
verbose: true

build-eth:
name: 'Build Test (ETH): ${{matrix.board.arch}}:${{matrix.board.name}}'
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
board:
- vendor: esp32
arch: esp32
name: esp32
- vendor: esp32
arch: esp32
name: esp32s3
- vendor: esp32
arch: esp32
name: esp32c3
include:
- index: https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json
board:
vendor: esp32
steps:
- uses: actions/checkout@v4
- name: compile example sketchs
uses: arduino/compile-sketches@v1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
fqbn: ${{matrix.board.vendor}}:${{matrix.board.arch}}:${{matrix.board.name}}
platforms: |
- name: ${{matrix.board.vendor}}:${{matrix.board.arch}}
source-url: ${{matrix.index}}
sketch-paths: |
- examples/ETH
libraries: |
- source-path: ./
- name: FastLED
verbose: true
4 changes: 2 additions & 2 deletions ArtnetWiFi.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

#if defined(ESP_PLATFORM) || defined(ESP8266) || defined(ARDUINO_AVR_UNO_WIFI_REV2) \
|| defined(ARDUINO_SAMD_MKRWIFI1010) || defined(ARDUINO_SAMD_MKRVIDOR4000) || defined(ARDUINO_SAMD_MKR1000) \
|| defined(ARDUINO_SAMD_NANO_33_IOT) || defined(ARDUINO_RASPBERRY_PI_PICO_W)
|| defined(ARDUINO_SAMD_NANO_33_IOT) || defined(ARDUINO_RASPBERRY_PI_PICO_W) || defined(ARDUINO_UNOR4_WIFI)
#define ARTNET_ENABLE_WIFI
#endif

Expand All @@ -19,7 +19,7 @@
#include <ESP8266WiFi.h>
#include <WiFiUdp.h>
#elif defined(ARDUINO_AVR_UNO_WIFI_REV2) || defined(ARDUINO_SAMD_MKRWIFI1010) || defined(ARDUINO_SAMD_MKRVIDOR4000) \
|| defined(ARDUINO_SAMD_NANO_33_IOT)
|| defined(ARDUINO_SAMD_NANO_33_IOT) || defined(ARDUINO_UNOR4_WIFI)
#include <SPI.h>
#include <WiFiNINA.h>
#include <WiFiUdp.h>
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
- ESP8266
- Raspberry Pi Pico W
- Arduino Uno WiFi Rev2
- Arduino Uno R4 WiFi
- Arduino MKR VIDOR 4000
- Arduino MKR WiFi 1010
- Arduino MKR WiFi 1000
Expand Down
Loading