tinyusb/.github/workflows/build_esp.yml

51 lines
1.0 KiB
YAML
Raw Normal View History

name: Build ESP
on:
workflow_dispatch:
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'
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
build-esp:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
board:
# ESP32-S2
- 'espressif_kaluga_1'
# ESP32-S3
- 'espressif_s3_devkitm'
steps:
- name: Setup Python
2022-11-06 15:17:00 +07:00
uses: actions/setup-python@v4
with:
python-version: '3.x'
- 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
- 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 }}