-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (51 loc) · 2 KB
/
WLED_15_esp32_c3_audio.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
name: WLED_15_esp32_c3_audio
on:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.9
- name: Install PlatformIO
run: |
python -m pip install --upgrade pip
pip install --upgrade platformio
- name: Set up Node.js
uses: actions/setup-node@v4
- name: Run PlatformIO
run: |
rm -rf /tmp/WLEDtemp/* || true
mkdir -p /tmp/WLEDtemp
wget https://github.com/Aircoookie/WLED/archive/refs/heads/0_15.zip -O /tmp/WLEDtemp/mm.zip
unzip /tmp/WLEDtemp/mm.zip -d /tmp/WLEDtemp
find /tmp/WLEDtemp -maxdepth 1 -mindepth 1 -name "*" -type d >> /tmp/WLEDtemp/wledfoldername
cd `cat /tmp/WLEDtemp/wledfoldername`
npm install
echo '[env:custom_build]' >>platformio.ini
echo 'extends = env:esp32c3dev' >>platformio.ini
echo 'build_flags = ${env:esp32c3dev.build_flags} ${common.debug_flags} ${esp32.AR_build_flags}' >>platformio.ini
echo 'lib_deps = ' >>platformio.ini
echo ' ${env:esp32c3dev.lib_deps}' >>platformio.ini
echo ' ${esp32.AR_lib_deps}' >>platformio.ini
echo 'build_unflags= -D WLED_RELEASE_NAME' >>platformio.ini
pio run -e custom_build || pio run -e custom_build
- name: Copy Files
run: |
cd $GITHUB_WORKSPACE
git rm -r $GITHUB_WORKSPACE/*.bin || true
WLEDFOLDERNAME=`cat /tmp/WLEDtemp/wledfoldername`
cp ${WLEDFOLDERNAME}/build_output/firmware/custom_build.bin $GITHUB_WORKSPACE/
date -I | tr -d '\n' >$GITHUB_WORKSPACE/last_update_date.txt
- name: Commit Files
run: |
cd $GITHUB_WORKSPACE
git config user.name "GitHub Actions Bot"
git config user.email "<>"
git add $GITHUB_WORKSPACE/custom_build.bin
git add $GITHUB_WORKSPACE/last_update_date.txt
git commit -m "Commit Custom Build"
git push origin main