Arduino CI #391
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
############################################################################## | |
# | |
# File: ci-arduinocli.yml | |
# | |
# Function: | |
# YAML file specifying how to do continuous integration for Arduino-LMIC | |
# (using arduino-cli) | |
# | |
############################################################################## | |
# the name that appears in the GitHub UI, the badge, etc | |
name: Arduino CI | |
# global environment | |
env: | |
MCCI_CI_LIBRARY: arduino-lmic | |
# specify the events that trigger runs. | |
on: | |
# pull requests (default settings) | |
pull_request: | |
# pushes (default settings) | |
push: | |
# repository operations | |
repository_dispatch: | |
schedule: | |
# do a build once a week at 06:07Z Sunday | |
- cron: '7 6 * * 0' | |
# what to do: | |
jobs: | |
# define a job named "arduinocli" | |
arduinocli: | |
# select a target OS | |
runs-on: ubuntu-latest | |
name: ${{ matrix.arch }} | |
strategy: | |
fail-fast: false | |
matrix: | |
arch: [samd, stm32, esp32, avr] | |
# get info about all the configs. | |
# step-by-step | |
steps: | |
# check out this repo as {root}/arduino-lmic | |
- uses: actions/checkout@v2 | |
name: Check out the repo | |
with: | |
path: libraries/${{ env.MCCI_CI_LIBRARY }} | |
- uses: actions/checkout@v2 | |
name: Set up mcci-catena-ci | |
with: | |
repository: mcci-catena/mcci-catena-ci | |
path: mcci-catena-ci | |
- name: "Get library: Adafruit_Sensor" | |
uses: actions/checkout@v2 | |
with: | |
repository: adafruit/Adafruit_Sensor | |
path: libraries/Adafruit_Sensor | |
- name: "Get library: DHT-sensor-library" | |
uses: actions/checkout@v2 | |
with: | |
repository: adafruit/DHT-sensor-library | |
path: libraries/DHT-sensor-library | |
- name: "Get library: Time" | |
uses: actions/checkout@v2 | |
with: | |
repository: PaulStoffregen/Time | |
path: libraries/Time | |
- name: Set up to build | |
run: bash mcci-catena-ci/setup.sh -l libraries/${{ env.MCCI_CI_LIBRARY }} -a ${{ matrix.arch }} | |
- name: Display structure of checkout | |
run: tree -d $(realpath .) | |
- name: Compile examples | |
run: bash mcci-catena-ci/arduino-lmic-regress-wrap.sh -l libraries/${{env.MCCI_CI_LIBRARY}} -a ${{ matrix.arch }} | |
### end of file ### |