2021-05-26 17:12:26 +07:00
|
|
|
name: Build ESP
|
|
|
|
|
|
|
|
on:
|
2023-05-25 16:53:32 +07:00
|
|
|
workflow_dispatch:
|
2021-05-26 17:12:26 +07:00
|
|
|
push:
|
2022-12-08 09:44:26 +07:00
|
|
|
paths:
|
2022-12-08 11:47:01 +07:00
|
|
|
- 'src/**'
|
|
|
|
- 'examples/**'
|
|
|
|
- 'lib/**'
|
2022-12-08 11:48:53 +07:00
|
|
|
- 'hw/**'
|
2023-02-01 16:36:39 +07:00
|
|
|
- '.github/workflows/build_esp.yml'
|
2022-12-08 09:44:26 +07:00
|
|
|
pull_request:
|
|
|
|
branches: [ master ]
|
|
|
|
paths:
|
2022-12-08 11:47:01 +07:00
|
|
|
- 'src/**'
|
|
|
|
- 'examples/**'
|
|
|
|
- 'lib/**'
|
|
|
|
- 'hw/**'
|
2023-02-01 16:36:39 +07:00
|
|
|
- '.github/workflows/build_esp.yml'
|
2021-05-26 17:12:26 +07:00
|
|
|
|
2022-12-04 21:08:47 +07:00
|
|
|
concurrency:
|
|
|
|
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
2021-05-26 17:12:26 +07:00
|
|
|
jobs:
|
|
|
|
build-esp:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
board:
|
|
|
|
# ESP32-S2
|
2023-09-28 16:15:31 +07:00
|
|
|
- 'espressif_kaluga_1'
|
2021-05-26 17:12:26 +07:00
|
|
|
# ESP32-S3
|
2023-09-28 16:15:31 +07:00
|
|
|
- 'espressif_s3_devkitm'
|
2021-05-26 17:12:26 +07:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Setup Python
|
2022-11-06 15:17:00 +07:00
|
|
|
uses: actions/setup-python@v4
|
2022-11-06 22:06:22 +07:00
|
|
|
with:
|
|
|
|
python-version: '3.x'
|
2021-05-26 17:12:26 +07:00
|
|
|
|
|
|
|
- name: Pull ESP-IDF docker
|
|
|
|
run: docker pull espressif/idf:latest
|
|
|
|
|
|
|
|
- name: Checkout TinyUSB
|
2022-04-24 16:49:29 +01:00
|
|
|
uses: actions/checkout@v3
|
2021-05-26 17:12:26 +07:00
|
|
|
|
|
|
|
- name: Build
|
2023-04-03 17:44:05 +07:00
|
|
|
run: docker run --rm -v $PWD:/project -w /project espressif/idf:latest python3 tools/build_esp32.py ${{ matrix.board }}
|