2020-04-01 23:03:57 +07:00
|
|
|
name: Build ESP32-S2
|
2020-04-01 22:55:44 +07:00
|
|
|
|
|
|
|
on: [pull_request, push, repository_dispatch]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
example: ['cdc_msc_freertos']
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Setup Python
|
|
|
|
uses: actions/setup-python@v1
|
|
|
|
|
2020-04-01 23:03:57 +07:00
|
|
|
- name: Install ESP-IDF
|
2020-04-01 22:55:44 +07:00
|
|
|
run: |
|
|
|
|
git clone https://github.com/espressif/esp-idf.git $HOME/esp-idf
|
|
|
|
cd $HOME/esp-idf
|
|
|
|
./install.sh
|
|
|
|
#echo "::add-path::`echo $HOME/msp430-gcc-*_linux64/bin`"
|
|
|
|
|
|
|
|
- name: Checkout TinyUSB
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
2020-04-01 23:03:57 +07:00
|
|
|
# - name: Checkout Submodules
|
|
|
|
# run: |
|
|
|
|
# git submodule sync --recursive
|
|
|
|
# git submodule update --init --recursive
|
2020-04-01 22:55:44 +07:00
|
|
|
|
2020-04-01 23:03:57 +07:00
|
|
|
- name: Build
|
|
|
|
run: |
|
|
|
|
. $HOME/esp-idf/export.sh
|
|
|
|
cd examples/device/cdc_msc_freertos
|
|
|
|
idf.py build
|
|
|
|
#python3 tools/build_all.py ${{ matrix.example }}
|
2020-04-01 22:55:44 +07:00
|
|
|
|