-
-
Notifications
You must be signed in to change notification settings - Fork 107
90 lines (80 loc) · 2.54 KB
/
build-listener-clients.yaml
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
87
88
89
90
name: Build Listener Clients
on:
push:
paths:
- '.github/**'
- 'listener_clients/**'
pull_request:
paths:
- '.github/**'
- 'listener_clients/**'
workflow_dispatch:
jobs:
build_embedded-listener:
name: Build Embedded Listener ${{ matrix.env }}
strategy:
matrix:
env: [m5atom, m5stack-core-esp32, m5stick-c, m5stick-c-plus, ttgo-t7-v13-mini32, ttgo-t7-v14-mini32, esp32dev, esp12e, nodemcu, esp01_1m, esp07]
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
- name: Install PlatformIO
run: |
python -m pip install --upgrade pip
pip install --upgrade platformio
pio system info
- name: Run PlatformIO
run: |
cd listener_clients/embedded-listener
pio run -e "${{ matrix.env }}" -v
- name: Upload a Build Artifact
uses: actions/[email protected]
with:
name: embedded-listener_${{ matrix.env }}
path: listener_clients/embedded-listener/.pio/build/${{ matrix.env }}/firmware.bin
analyse_blink1-listener:
name: Analyse Blink1 Listener
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Install prosepector
run: pip install prospector[with_everything]
- name: Analyse
working-directory: listener_clients/blink1-listener
run: prospector -W pyroma -0
analyse_blinkt-listener:
name: Analyse Pimoroni Blinkt Listener
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Install prosepector
run: pip install prospector[with_everything]
- name: Analyse
working-directory: listener_clients/pimoroni-blinkt-listener
run: prospector -W pyroma -0
analyse_gpo-listener:
name: Analyse GPO Listener
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Install prosepector
run: pip install prospector[with_everything]
- name: Analyse
working-directory: listener_clients/gpo-listener
run: prospector -W pyroma -0
analyse_relay-listener:
name: Analyse Relay Listener
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
#- name: Install dependencies
# working-directory: listener_clients/relay-listener
# run: |
# sudo apt install libudev-dev libusb-1.0-0 libusb-1.0-0-dev
# npm install
# npm install --global eslint
#- name: Run eslint
# working-directory: listener_clients/relay-listener
# run: eslint index.js || exit 0