-
Notifications
You must be signed in to change notification settings - Fork 0
27 lines (26 loc) · 916 Bytes
/
main.yml
File metadata and controls
27 lines (26 loc) · 916 Bytes
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
name: build
on:
push:
branches: [ master ]
workflow_dispatch:
inputs:
dummy:
description: 'Just as an example'
required: false
jobs:
fetch-toolchain:
runs-on: ubuntu-latest
defaults:
run:
shell: bash
container:
image: espressif/idf:latest
steps:
- uses: actions/checkout@v2
- run: apt update
- run: apt install -y git wget flex bison gperf python3-pip python-setuptools cmake ninja-build ccache libffi-dev libssl-dev dfu-util
- run: git clone --recursive https://github.com/espressif/esp-idf.git $HOME/esp-idf
- run: cd $HOME/esp-idf && ./install.sh
# - run: source $HOME/esp-idf/export.sh && cd $GITHUB_WORKSPACE && idf.py build
- run: source $HOME/esp-idf/export.sh && cd $GITHUB_WORKSPACE && mkdir build && cd build && cmake .. -G Ninja && ninja
# - run: cd $GITHUB_WORKSPACE && idf.py build