fix: remove all avr specific features #3
Workflow file for this run
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: Validate Pull Requests | |
on: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
compile_test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Install Arduino CLI | |
uses: arduino/setup-arduino-cli@v1 | |
- name: Run Arduino Linter | |
uses: arduino/arduino-lint-action@v1 | |
with: | |
library-manager: update | |
- name: Install libraries | |
run: | |
| | |
# Install arduino AVR | |
arduino-cli core install arduino:avr | |
# Install dependencies | |
libs=$(cat library.properties | grep depends | sed 's/depends=//g') | |
IFS=',' read -ra lib <<< "$libs" | |
for i in "${lib[@]}"; do | |
arduino-cli lib install "$i" | |
done | |
- name: Compile test sketch | |
run: | |
| | |
# Perform test compile | |
arduino-cli compile tests --fqbn arduino:avr:uno --log --library . --clean |