Skip to content

update to github actions #1

update to github actions

update to github actions #1

Workflow file for this run

name: Compile Examples
on:
- push
- pull_request
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
fqbn:
- arduino:avr:uno
- arduino:avr:nano:cpu=atmega168
- arduino:avr:nano:cpu=atmega328
- arduino:avr:mega:cpu=atmega1280
- arduino:avr:mega:cpu=atmega2560
- arduino:avr:leonardo
- arduino:samd:nano_33_iot
- arduino:megaavr:uno2018:mode=on
- arduino:mbed:nano33ble
- arduino:mbed_nano:nanorp2040connect
steps:
- uses: actions/checkout@v4
- uses: arduino/compile-sketches@v1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
fqbn: ${{ matrix.fqbn }}
sketch-paths: |
- examples/AnalogAndVoltage
- examples/EEPROMCalibration
build-for-esp32:
runs-on: ubuntu-latest
strategy:
matrix:
fqbn:
- esp32:esp32:esp32
- esp32:esp32:esp32s3
- esp32:esp32:esp32c3
steps:
- uses: actions/checkout@v4
- uses: arduino/compile-sketches@v1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
fqbn: ${{ matrix.fqbn }}
platforms: |
- name: esp32:esp32
source-url: https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json
sketch-paths: |
- examples/AnalogAndVoltage
- examples/EEPROMCalibration
cli-compile-flags: |
- --warnings="none"
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: arduino/arduino-lint-action@v1
with:
library-manager: update
compliance: specification