mirror of
https://github.com/hathach/tinyusb.git
synced 2025-04-16 05:42:56 +00:00
CI: seperate esp32s2 into different job
skip esp32s in build_all.py script
This commit is contained in:
parent
19f767317f
commit
f073a5ecd3
30
.github/workflows/build.yml
vendored
30
.github/workflows/build.yml
vendored
@ -3,6 +3,7 @@ name: Build
|
|||||||
on: [pull_request, push, repository_dispatch]
|
on: [pull_request, push, repository_dispatch]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
# Unit testing with Ceedling
|
||||||
unit-test:
|
unit-test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
@ -19,6 +20,7 @@ jobs:
|
|||||||
cd test
|
cd test
|
||||||
ceedling test:all
|
ceedling test:all
|
||||||
|
|
||||||
|
# Build most of the ports
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
@ -57,11 +59,6 @@ jobs:
|
|||||||
tar -C $HOME -xaf /tmp/dl/msp430-gcc.tar.bz2
|
tar -C $HOME -xaf /tmp/dl/msp430-gcc.tar.bz2
|
||||||
echo "::add-path::`echo $HOME/msp430-gcc-*_linux64/bin`"
|
echo "::add-path::`echo $HOME/msp430-gcc-*_linux64/bin`"
|
||||||
|
|
||||||
# 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
|
- name: Checkout TinyUSB
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
@ -80,3 +77,26 @@ jobs:
|
|||||||
. $HOME/esp-idf/export.sh
|
. $HOME/esp-idf/export.sh
|
||||||
python3 tools/build_all.py ${{ matrix.example }}
|
python3 tools/build_all.py ${{ matrix.example }}
|
||||||
|
|
||||||
|
# Build ESP32S
|
||||||
|
build-esp32s:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Setup Python
|
||||||
|
uses: actions/setup-python@v1
|
||||||
|
|
||||||
|
- name: Install Toolchains
|
||||||
|
run: |
|
||||||
|
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:
|
||||||
|
submodules: 'false'
|
||||||
|
|
||||||
|
- name: Build
|
||||||
|
run: |
|
||||||
|
. $HOME/esp-idf/export.sh
|
||||||
|
cd examples/device/cdc_msc_freertos
|
||||||
|
idf.py build
|
||||||
|
34
.github/workflows/build_esp32s.yml
vendored
34
.github/workflows/build_esp32s.yml
vendored
@ -1,34 +0,0 @@
|
|||||||
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 }} esp32s2_saola
|
|
||||||
|
|
@ -57,8 +57,8 @@ def skip_example(example, board):
|
|||||||
with open(board_mk) as mk:
|
with open(board_mk) as mk:
|
||||||
mk_contents = mk.read()
|
mk_contents = mk.read()
|
||||||
|
|
||||||
# Skip ESP32-S2 board if example is not FreeRTOS one
|
# Skip all ESP32-S2 board for CI
|
||||||
if 'freertos' not in example and 'CROSS_COMPILE = xtensa-esp32s2-elf-' in mk_contents:
|
if 'CROSS_COMPILE = xtensa-esp32s2-elf-' in mk_contents:
|
||||||
return 1
|
return 1
|
||||||
|
|
||||||
# Skip if CFG_TUSB_MCU in board.mk to match skip file
|
# Skip if CFG_TUSB_MCU in board.mk to match skip file
|
||||||
|
Loading…
x
Reference in New Issue
Block a user