Skip to content
server

GitHub Action

Run arduino-builder

v2.0.0 Latest version

Run arduino-builder

server

Run arduino-builder

Run the arduino-builder for all sketches and see if they compile

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Run arduino-builder

uses: Legion2/arduino-builder-action@v2.0.0

Learn more about this action in Legion2/arduino-builder-action

Choose a version

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.