summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorhathach <[email protected]>2020-04-06 22:23:24 +0700
committerhathach <[email protected]>2020-04-06 22:23:24 +0700
commitc64db32b82715f7bd1e8a42e5658822741dab99b (patch)
tree7e3d3b654c14fe43eb7f219a2d5a45b577b36969 /.github
parentef7992ce65f243d838bf79197f5c55e792e4ce87 (diff)
ci test
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/build_esp32s.yml34
1 files changed, 34 insertions, 0 deletions
diff --git a/.github/workflows/build_esp32s.yml b/.github/workflows/build_esp32s.yml
new file mode 100644
index 000000000..102e22c60
--- /dev/null
+++ b/.github/workflows/build_esp32s.yml
@@ -0,0 +1,34 @@
+name: Build ESP32S
+
+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
+
+ - name: Install Toolchains
+ run: |
+ # ESP IDF
+ git clone --depth 1 https://github.com/espressif/esp-idf.git $HOME/esp-idf
+ cd $HOME/esp-idf
+ ./install.sh
+
+ - name: Checkout TinyUSB
+ uses: actions/checkout@v2
+ with:
+ # Cannot do submodule checkout here since LWIP's git server cannot checkout unadventised commits (it must use tags)
+ submodules: 'false'
+
+ - name: Build
+ run: |
+ . $HOME/esp-idf/export.sh
+ python3 tools/build_all.py ${{ matrix.example }}
+