Skip to content

updated config

updated config #8

Workflow file for this run

# LibraryBuild.yml
# Github workflow script to test compile all examples of an Arduino library repository.
#
# Copyright (C) 2021 Armin Joachimsmeyer
# https://github.com/ArminJo/Github-Actions
# This is the name of the workflow, visible on GitHub UI.
name: LibraryBuild
on:
workflow_dispatch: # To run it manually
push: # see: https://help.github.com/en/actions/reference/events-that-trigger-workflows#pull-request-event-pull_request
paths:
- '**.ino'
- '**.cpp'
- '**.h'
- '**LibraryBuild.yml'
pull_request:
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: arduino/arduino-lint-action@v1
with:
library-manager: update
build:
name: ${{ matrix.arduino-boards-fqbn }} - test compiling examples
runs-on: ubuntu-latest # I picked Ubuntu to use shell scripts.
env:
# Comma separated list
REQUIRED_LIBRARIES:
strategy:
matrix:
# The matrix will produce one job for each configuration parameter of type `arduino-boards-fqbn`
# In the Arduino IDE, the fqbn is printed in the first line of the verbose output for compilation as parameter -fqbn=... for the "arduino-builder -dump-prefs" command
#
# Examples: arduino:avr:uno, arduino:avr:leonardo, arduino:avr:nano, arduino:avr:mega
# arduino:sam:arduino_due_x, arduino:samd:arduino_zero_native"
# ATTinyCore:avr:attinyx5:chip=85,clock=1internal, digistump:avr:digispark-tiny, digistump:avr:digispark-pro
# STMicroelectronics:stm32:GenF1:pnum=BLUEPILL_F103C8
# esp8266:esp8266:huzzah:eesz=4M3M,xtal=80, esp32:esp32:featheresp32:FlashFreq=80
# You may add a suffix behind the fqbn with "|" to specify one board for e.g. different compile options like arduino:avr:uno|trace
#############################################################################################################
arduino-boards-fqbn:
- arduino:avr:uno
- arduino:avr:leonardo
- arduino:avr:mega
- ATTinyCore:avr:attiny828:clock=8internal
# Choose the right platform for the boards we want to test. (maybe in the future Arduino will automatically do this for you)
# With sketches-exclude you may exclude specific examples for a board. Use a comma separated list.
#############################################################################################################
include:
- arduino-boards-fqbn: ATTinyCore:avr:attinyx41:chip=841,clock=8internal
platform-url: http://drazzy.com/package_drazzy.com_index.json
- arduino-boards-fqbn: ATTinyCore:avr:attinyx4:chip=84,clock=8internal
platform-url: http://drazzy.com/package_drazzy.com_index.json
- arduino-boards-fqbn: ATTinyCore:avr:attinyx7:chip=87,clock=8internal
platform-url: http://drazzy.com/package_drazzy.com_index.json
- arduino-boards-fqbn: ATTinyCore:avr:attinyx8:chip=88,clock=8internal
platform-url: http://drazzy.com/package_drazzy.com_index.json
- arduino-boards-fqbn: ATTinyCore:avr:attiny828:clock=8internal
platform-url: http://drazzy.com/package_drazzy.com_index.json
- arduino-boards-fqbn: MightyCore:avr:1284
platform-url: https://mcudude.github.io/MightyCore/package_MCUdude_MightyCore_index.json
# Do not cancel all jobs / architectures if one job fails
fail-fast: false
steps:
- name: Checkout
uses: actions/checkout@master
- name: Compile all examples
uses: ArminJo/arduino-test-compile@master
with:
arduino-board-fqbn: ${{ matrix.arduino-boards-fqbn }}
platform-url: ${{ matrix.platform-url }}
required-libraries: ${{ env.REQUIRED_LIBRARIES }}
build-properties: ${{ toJson(matrix.build-properties) }}
sketches-exclude: ${{ matrix.sketches-exclude }}