DEPRECATION WARNING: Arduino Builder is being phased out in favor of Arduino CLI, I recommend using Test compile for Arduino by ArminJo.
Read my blog post on how to use Arduino CLI in GitHub Actions and how to migrate from this Action to Arduino CLI.
Github Action to run arduino-builder for sketches and see if they compile.
Used Arduino IDE version is 1.8.3
.
See action.yml for comprehensive list of parameters.
Basic:
name: Build examples
on: push
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Build all example sketches
uses: Legion2/arduino-builder-action@v2.0.0
with:
board: "arduino:avr:leonardo"
Specified arguments override any input parameters passed to arduino-builder, with the exception of the sketch input parameter. Only use arguments if the input parameters don't provide the feature you need. See the the action.yml for comprehensive list of input parameters.
Libraries SHOULD be installed by a previous step in the job in libraries/
.
You can use Download GitHub Release Action to install a library form a GitHub Release.
The Dockerfile and associated scripts and documentation in this project are released under the Apache-2.0 License.