Skip to content

Commit 53108bf

Browse files
authored
Build Action (#1)
added build.yml for compiling the PlatformIO project.
1 parent 0d69ece commit 53108bf

File tree

2 files changed

+52
-1
lines changed

2 files changed

+52
-1
lines changed

.github/workflows/build.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Compile Project
2+
3+
# The workflow will run on every push and pull request to the repository
4+
on:
5+
workflow_dispatch:
6+
# (optional) Run workflow when pushing on master/main
7+
push:
8+
pull_request:
9+
branches: ["main"]
10+
schedule:
11+
- cron: '0 0 1 * *'
12+
13+
jobs:
14+
build:
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- uses: actions/checkout@v3
19+
- uses: actions/cache@v3
20+
with:
21+
path: |
22+
~/.cache/pip
23+
~/.platformio/.cache
24+
key: ${{ runner.os }}-pio
25+
- uses: actions/setup-python@v4
26+
with:
27+
python-version: '3.11'
28+
- name: Install PlatformIO Core
29+
run: pip install --upgrade platformio
30+
31+
- name: Build PlatformIO Project
32+
run: pio run
33+
- name: Archive ESP32 Firmware
34+
uses: actions/upload-artifact@v4
35+
with:
36+
name: esp32-divoom
37+
path: .pio/build/esp32dev/firmware.bin

README.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,16 @@
11
# esp32-divoom
2-
Divoom Proxy for ESP32
2+
[![Compile Project](https://github.com/d03n3rfr1tz3/esp32-divoom/actions/workflows/build.yml/badge.svg)](https://github.com/d03n3rfr1tz3/esp32-divoom/actions/workflows/build.yml)
3+
[![GitHub release](https://img.shields.io/github/release/d03n3rfr1tz3/esp32-divoom.svg)](https://github.com/d03n3rfr1tz3/esp32-divoom/releases/latest)
4+
5+
**Divoom Proxy for ESP32**
6+
7+
Allows you to send commands to your Divoom device through various protocols. It works as a companion for my [Home Assistant integration](https://github.com/d03n3rfr1tz3/hass-divoom),
8+
but you can also use it as standalone communicator for your Divoom devices. Currently the following input protocols are either implemented or planned. You can find more information
9+
in the documentation below.
10+
11+
* **Serial**
12+
* **TCP**
13+
* MQTT (ToDo)
14+
15+
## Documentation
16+
TODO

0 commit comments

Comments
 (0)