Skip to content

Commit

Permalink
Add CI build for T1S library.
Browse files Browse the repository at this point in the history
  • Loading branch information
aentinger committed Jan 16, 2024
1 parent 266a9f6 commit 9dfe97b
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 0 deletions.
55 changes: 55 additions & 0 deletions .github/workflows/compile-examples.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: Compile Examples

on:
pull_request:
paths:
- ".github/workflows/compile-examples.yml"
- "examples/**"
- "src/**"
push:
paths:
- ".github/workflows/compile-examples.yml"
- "examples/**"
- "src/**"

jobs:
build:
runs-on: ubuntu-latest

env:
SKETCHES_REPORTS_PATH: sketches-reports
LIBRARIES: |
# Install the library from the local path.
- source-path: ./
strategy:
fail-fast: false

matrix:
board:
- fqbn: arduino:samd:nano_33_iot
platforms: |
- name: arduino:samd
- fqbn: arduino:samd:arduino_zero_native
platforms: |
- name: arduino:samd
- fqbn: arduino:arduino:samd:arduino_zero_edbg
platforms: |
- name: arduino:samd
- fqbn: arduino:renesas_uno:minima
platforms: |
- name: arduino:renesas_uno
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Compile examples
uses: arduino/compile-sketches@main
with:
fqbn: ${{ matrix.board.fqbn }}
platforms: ${{ matrix.board.platforms }}
libraries: ${{ env.LIBRARIES }}
enable-deltas-report: false
github-token: ${{ secrets.GITHUB_TOKEN }}
sketches-report-path: ${{ env.SKETCHES_REPORTS_PATH }}
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
`Arduino_10BASE_T1S`
====================
[![Compile Examples](https://github.com/bcmi-labs/Arduino_10BASE_T1S/workflows/Compile%20Examples/badge.svg)](https://github.com/bcmi-labs/Arduino_10BASE_T1S/actions?workflow=Compile+Examples)

**Note**: This library works for Arduino [Nano 33 IoT](https://store.arduino.cc/products/arduino-nano-33-iot).

### How-to-compile/upload
Expand Down

0 comments on commit 9dfe97b

Please sign in to comment.