forked from things-nyc/arduino-lmic
-
Notifications
You must be signed in to change notification settings - Fork 213
86 lines (71 loc) · 2.24 KB
/
ci-arduinocli.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
##############################################################################
#
# 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 ###