-
Notifications
You must be signed in to change notification settings - Fork 31
44 lines (37 loc) · 1.04 KB
/
build_pio.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
name: Build Bluetti ESP32 Bridge with PlatformIO
on:
push:
branches:
- main
pull_request:
types:
- opened
workflow_run:
workflows: ["Build with PlatformIO on PR Request"]
types:
- completed
branches:
- main # Change this to the branch you want to trigger the build on
jobs:
build:
name: build with plattformIO
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x' # Set the desired Python version
- name: Install PlatformIO
run: |
pip install -U platformio
platformio platform install espressif32
- name: Build ESP32 Program
run: |
platformio run
# - name: Upload artifacts
# uses: actions/upload-artifact@v2
# with:
# name: firmware # Set the name of the artifact directory
# path: .pio/build/<environment_name> # Replace <environment_name> with your PlatformIO environment name