-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Test repo as core without platform-url
- Loading branch information
Showing
3 changed files
with
94 additions
and
29 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
# TestRelease.yml | ||
# Github workflow script to test compile all examples of an Arduino library repository. | ||
# | ||
# Copyright (C) 2020 Armin Joachimsmeyer | ||
# https://github.com/ArminJo/Github-Actions | ||
# | ||
|
||
# This is the name of the workflow, visible on GitHub UI. | ||
name: TestRelease | ||
on: | ||
push: # see: https://help.github.com/en/actions/reference/events-that-trigger-workflows#pull-request-event-pull_request | ||
paths: | ||
- 'package_digistump_index.json' | ||
release: | ||
types: [released, prereleased] | ||
jobs: | ||
build: | ||
name: Test release for Digispark | ||
runs-on: ubuntu-latest | ||
env: | ||
PLATFORM_DEFAULT_URL: https://raw.githubusercontent.com/ArminJo/DigistumpArduino/master/package_digistump_index.json | ||
# Comma separated list without double quotes around the 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 | ||
# STM32: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: | ||
- digistump:avr:digispark-tiny # ATtiny85 board @16.5 MHz | ||
- digistump:avr:digispark-pro | ||
- digistump:avr:MHETtiny88 # Chinese MH-Tiny ATTiny88 | ||
|
||
# Specify parameters for each board. | ||
# With sketches-exclude you may exclude specific examples for a board. Use a comma separated list. | ||
############################################################################################################# | ||
include: | ||
- arduino-boards-fqbn: digistump:avr:digispark-tiny # ATtiny85 board @16.5 MHz | ||
sketches-exclude: Blink # All Wire examples | ||
|
||
- arduino-boards-fqbn: digistump:avr:MHETtiny88 # ATtiny88 Chino clone board @16 MHz | ||
# Examples to exclude because of incompatible I2C Hardware, the original library uses TiniWireM library. SoftPwm is not required and not working | ||
sketches-exclude: WiiClassicJoystick,BasicUsage,DigisparkOLED,SoftPwm13Pins,TinySoftPwmDemo,DigiUSB2LCD,DigisparkUSBDemo,ArduinoNunchukDemo,DigisparkJoystickDemo | ||
|
||
# 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: | ||
required-libraries: ${{ env.REQUIRED_LIBRARIES }} | ||
arduino-board-fqbn: ${{ matrix.arduino-boards-fqbn }} | ||
platform-default-url: ${{ env.PLATFORM_DEFAULT_URL }} | ||
#platform-url: ${{ matrix.platform-url }} | ||
sketches-exclude: ${{ matrix.sketches-exclude }} | ||
build-properties: ${{ toJson(matrix.build-properties) }} | ||
sketch-names: "*.ino" | ||
sketch-names-find-start: digistump-avr/libraries/*/examples/ |
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