-
-
Notifications
You must be signed in to change notification settings - Fork 7
47 lines (47 loc) · 1.94 KB
/
compile.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
on:
- pull_request
- push
jobs:
compile_firmware:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Unzip libraries
run: |
unzip -q ${{ github.workspace }}/libs/Adafruit_GFX_Library.zip -d ${{ github.workspace }}/libs/
unzip -q ${{ github.workspace }}/libs/ArduinoAsync-master.zip -d ${{ github.workspace }}/libs/
unzip -q ${{ github.workspace }}/libs/ESPAsyncWebServer-master.zip -d ${{ github.workspace }}/libs/
- name: Compile firmware
uses: arduino/compile-sketches@v1
with:
sketch-paths: |
- ${{ github.workspace }}/src/firmware
fqbn: esp32:esp32:esp32
libraries: |
- source-path: ${{ github.workspace }}/libs/Adafruit_GFX_Library
- source-path: ${{ github.workspace }}/libs/ArduinoAsync-master
- source-path: ${{ github.workspace }}/libs/ESPAsyncWebServer-master
destination-name: ESP_Async_WebServer
- name: Adafruit SSD1306
version: 2.5.7
- name: home-assistant-integration
version: 2.0.0
- name: NeoPixelBus by Makuna
version: 2.7.7
- name: NTPClient
version: 3.2.1
- name: WiFiManager
version: 2.0.16-rc.2
- name: AsyncTCP
version: 1.1.4
- name: ArduinoJson
version: 7.0.1
enable-deltas-report: true
enable-warnings-report: true
cli-compile-flags: |
- --export-binaries
- name: Upload firmware
uses: actions/upload-artifact@v4
with:
name: firmware.bin
path: ${{ github.workspace }}/src/firmware/build/esp32.esp32.esp32/firmware.ino.bin