forked from Twilight-Logic/AR488
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.build.yml
39 lines (38 loc) · 983 Bytes
/
.build.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
image: debian/bullseye
packages:
- curl
- python3-pip
- python3-sphinx
- python3-cairocffi
sources:
- https://git.sr.ht/~douardda/AR488-ESP32
oauth: pages.sr.ht/PAGES:RW
environment:
site: douardda.srht.site
tasks:
- setup: |
cd AR488-ESP32
pip install --user -U platformio
python3 -m platformio upgrade
pip install -r docs/requirements.txt
- build_fw: |
cd AR488-ESP32
python3 -m platformio run
- build_doc: |
cd AR488-ESP32/docs
make html
tar zcvf docs.tgz -C build/html .
- upload_fw: |
cd AR488-ESP32
mkdir firmwares
for fw in .pio/build/*/firmware.bin; do
cp $fw firmwares/$(basename `dirname $fw`).bin
done
tar zcvf firmwares.tgz firmwares
- upload_doc: |
cd AR488-ESP32/docs
tar zcvf docs.tgz -C build/html .
acurl -f https://pages.sr.ht/publish/$site [email protected]
artifacts:
- AR488-ESP32/docs/docs.tgz
- AR488-ESP32/firmwares.tgz