-
-
Notifications
You must be signed in to change notification settings - Fork 101
198 lines (189 loc) · 6.46 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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
name: Build Listener Clients
on:
push:
paths:
- 'listener_clients/**'
- '.github/workflows/build-listener-clients.yaml'
pull_request:
paths:
- 'listener_clients/**'
- '.github/workflows/build-listener-clients.yaml'
workflow_dispatch:
jobs:
build_m5stickc-listener:
name: Build M5StickC Listener
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: arduino/compile-sketches@v1
with:
platforms: |
- name: esp32:esp32
source-url: https://dl.espressif.com/dl/package_esp32_index.json
fqbn: 'esp32:esp32:m5stick-c'
libraries: |
- source-url: https://github.com/m5stack/M5StickC/archive/refs/tags/0.2.9.zip
- source-url: https://github.com/m5stack/M5StickC-Plus/archive/refs/tags/0.1.0.zip
- name: WebSockets
- name: WiFiManager
- name: MultiButton
- name: Arduino_JSON
cli-compile-flags: |
- --export-binaries
sketch-paths: |
- listener_clients/m5stickc-listener
enable-deltas-report: true
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: 'TallyArbiter-Listener-M5StickC'
path: 'listener_clients/m5stickc-listener/build/esp32.esp32.m5stick-c'
build_m5atom-listener:
name: Build M5Atom Listener
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: arduino/compile-sketches@v1
with:
platforms: |
- name: esp32:esp32
source-url: https://dl.espressif.com/dl/package_esp32_index.json
fqbn: 'esp32:esp32:m5stack-atom'
libraries: |
- source-url: https://github.com/m5stack/M5Atom/archive/refs/tags/0.1.2.zip
- name: WebSockets
- name: WiFiManager
- name: MultiButton
- name: Arduino_JSON
- name: FastLED
cli-compile-flags: |
- --export-binaries
sketch-paths: |
- listener_clients/M5AtomMatrix-listener/tallyarbiter-m5atom
enable-deltas-report: true
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: 'TallyArbiter-Listener-M5Atom'
path: 'listener_clients/M5AtomMatrix-listener/tallyarbiter-m5atom/build/esp32.esp32.m5stack-atom'
build_esp32-neopixel-listener:
name: Build ESP32 NeoPixel Listener
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: arduino/compile-sketches@v1
with:
platforms: |
- name: esp32:esp32
source-url: https://dl.espressif.com/dl/package_esp32_index.json
fqbn: 'esp32:esp32:esp32'
libraries: |
- name: WebSockets
- name: WiFiManager
- name: MultiButton
- name: Arduino_JSON
- name: Adafruit NeoPixel
cli-compile-flags: |
- --export-binaries
sketch-paths: |
- listener_clients/esp32-neopixel-listener
enable-deltas-report: true
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: 'TallyArbiter-Listener-ESP32-NeoPixel'
path: 'listener_clients/esp32-neopixel-listener/build/esp32.esp32.esp32'
build_TTGO-listener:
strategy:
fail-fast: false
matrix:
board:
- fqbn: esp32:esp32:ttgo-t1
name: TTGO T1
- fqbn: esp32:esp32:ttgo-t7-v13-mini32
name: TTGO T7 v13 Mini32
- fqbn: esp32:esp32:ttgo-t7-v14-mini32
name: TTGO T7 v14 Mini32
- fqbn: esp32:esp32:twatch
name: TTGO T-Watch
name: Build ${{ matrix.board.name }} Listener
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup TFT_eSPI and select User Setup
run: |
git clone https://github.com/Bodmer/TFT_eSPI/
cd TFT_eSPI
sed -i 's/#include <User_Setup.h>/\/\/#include <User_Setup.h>/g' User_Setup_Select.h
sed -i 's/\/\/#include <User_Setups\/Setup22_TTGO_T4.h>/#include <User_Setups\/Setup22_TTGO_T4.h>/g' User_Setup_Select.h
- uses: arduino/compile-sketches@v1
with:
platforms: |
- name: esp32:esp32
source-url: https://dl.espressif.com/dl/package_esp32_index.json
fqbn: ${{ matrix.board.fqbn }}
libraries: |
- name: WebSockets
- name: WiFiManager
- name: MultiButton
- name: Arduino_JSON
- source-path: TFT_eSPI
cli-compile-flags: |
- --export-binaries
sketch-paths: |
- listener_clients/TTGO_T-listener
enable-deltas-report: true
- name: Get FQBN build dir for ${{ matrix.board.name }}
run: |
RAW_FQBN="${{ matrix.board.fqbn }}"
FQBN_REPLACED=$(echo $RAW_FQBN | sed 's/:/./g')
echo "FQBN_REPLACED=$FQBN_REPLACED" >> $GITHUB_ENV
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: 'TallyArbiter-Listener-${{ matrix.board.name }}'
path: 'listener_clients/TTGO_T-listener/build/${{ env.FQBN_REPLACED }}'
analyse_blink1-listener:
name: Analyse Blink1 Listener
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- 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@v4
- 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@v4
- 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@v4
#- 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