Skip to content

Commit

Permalink
Simplify setup
Browse files Browse the repository at this point in the history
  • Loading branch information
Johboh committed Dec 28, 2023
1 parent ad1da1c commit 5531511
Show file tree
Hide file tree
Showing 6 changed files with 57 additions and 65 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/esp_upload_component.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ on:
types: [created]
jobs:
build_examples_for_verification:
uses: ./.github/workflows/espidf_wf.yaml
uses: ./.github/workflows/espidf.yaml
upload_components:
runs-on: ubuntu-latest
needs: [build_examples_for_verification]
steps:
- uses: actions/checkout@master
- name: Upload component to component registry
Expand Down
30 changes: 27 additions & 3 deletions .github/workflows/espidf.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,29 @@
name: ESP-IDF CI
on: [push]
on: [workflow_call, push]
jobs:
build_examples:
uses: ./.github/workflows/espidf_wf.yaml
esp_idf_build:
runs-on: ubuntu-latest
strategy:
matrix:
version:
- name: v4_build
version_number: v4.4.3
target: esp32c3
- name: v5_build
version_number: v5.1.2
target: esp32c6
example:
- name: publish_and_subscribe

steps:
- name: Checkout repo
uses: actions/checkout@v2
with:
submodules: 'recursive'

- name: ESP-IDF Build
uses: espressif/esp-idf-ci-action@v1
with:
esp_idf_version: ${{ matrix.version.version_number }}
target: ${{ matrix.version.target }}
path: examples/espidf/${{ matrix.example.name }}
29 changes: 0 additions & 29 deletions .github/workflows/espidf_wf.yaml

This file was deleted.

29 changes: 26 additions & 3 deletions .github/workflows/platformio.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,28 @@
name: PlatformIO CI
on: [push]
on: [workflow_call, push]
jobs:
build_examples:
uses: ./.github/workflows/platformio_wf.yaml
build:
runs-on: ubuntu-latest
strategy:
matrix:
example:
- name: publish_and_subscribe

steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
with:
path: |
~/.cache/pip
~/.platformio/.cache
key: ${{ runner.os }}-pio
- uses: actions/setup-python@v4
with:
python-version: '3.9'
- name: Install PlatformIO Core
run: pip install --upgrade platformio

- name: Build PlatformIO examples
run: pio ci --lib="." --board=lolin_s2_mini --board=lolin_c3_mini --board="d1_mini"
env:
PLATFORMIO_CI_SRC: examples/arduino/${{ matrix.example.name }}
3 changes: 2 additions & 1 deletion .github/workflows/platformio_publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ on:
types: [created]
jobs:
build_examples_for_verification:
uses: ./.github/workflows/platformio_wf.yaml
uses: ./.github/workflows/platformio.yaml
upload_library:
runs-on: ubuntu-latest
needs: [build_examples_for_verification]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
Expand Down
28 changes: 0 additions & 28 deletions .github/workflows/platformio_wf.yaml

This file was deleted.

0 comments on commit 5531511

Please sign in to comment.