forked from espressif/esp-usb-bridge
-
-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (52 loc) · 1.47 KB
/
ci.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: ci
on:
push:
branches:
- qitas
# paths:
# - '**.yml'
# - '**.json'
# - '**.py'
jobs:
build:
strategy:
fail-fast: false
matrix:
targets:
- "esp32s2"
- "esp32s3"
idf: ["v4.4.2"]
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v2
with:
submodules: "recursive"
- name: Setup Python
uses: actions/setup-python@v1
with:
python-version: 3.9
- name: Install
if: matrix.os == 'ubuntu-latest'
run: |
sudo apt install -y git wget gperf cmake ninja-build ccache dfu-util
- name: Build
run: |
git clone -b ${{ matrix.idf }} --recursive https://github.com/espressif/esp-idf.git
cd esp-idf
./install.sh ${{ matrix.targets }}
. ./export.sh
cd ..
idf.py set-target ${{ matrix.targets }}
idf.py build
idf.py uf2
cd build
esptool.py --chip ${{ matrix.targets }} merge_bin -o bridge-${{ matrix.targets }}-${{ matrix.idf }}.bin @flash_args
mkdir output
mv bridge-${{ matrix.targets }}-${{ matrix.idf }}.bin output/
mv uf2.bin output/
- name: Upload
uses: actions/upload-artifact@v2
with:
name: ${{ matrix.targets }}-${{ matrix.idf }}
path: build/output