Skip to content

Commit

Permalink
update to github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
rlogiacco committed Jan 27, 2024
1 parent 9b8ce77 commit 4d3cdd5
Show file tree
Hide file tree
Showing 2 changed files with 65 additions and 34 deletions.
65 changes: 65 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
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
34 changes: 0 additions & 34 deletions .travis.yml

This file was deleted.

0 comments on commit 4d3cdd5

Please sign in to comment.