Skip to content

Legion2/arduino-builder-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Run arduino-builder

Github Action to run arduino-builder for sketches and see if they compile. Used Arduino IDE version is 1.8.3.

Usage

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"

Arguments

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.

Install Libraries

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.

License

The Dockerfile and associated scripts and documentation in this project are released under the Apache-2.0 License.