Skip to content

Commit 153918e

Browse files
authored
Create release.yml
1 parent 6b75948 commit 153918e

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/release.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: TonexOneController Build
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Checkout repository
17+
uses: actions/checkout@v2
18+
19+
- name: Set up Python
20+
uses: actions/setup-python@v2
21+
with:
22+
python-version: '3.11.2'
23+
24+
- name: Install ESP-IDF
25+
run: |
26+
sudo apt-get install -y git wget flex bison gperf python3 python3-pip python3-setuptools cmake ninja-build ccache libffi-dev libssl-dev dfu-util libusb-1.0-0
27+
git clone --recursive https://github.com/espressif/esp-idf.git
28+
cd esp-idf
29+
./install.sh
30+
. ./export.sh
31+
32+
- name: Build project
33+
run: |
34+
. $GITHUB_WORKSPACE/esp-idf/export.sh
35+
idf.py build

0 commit comments

Comments
 (0)