Update cmake-single-platform.yml

This commit is contained in:
Brian authored and GitHub committed 2025-10-01 00:53:56 +10:00
1 parent b82301bb77
commit 1187456fe9
1 file changed
+28 -8
+28 -8
View File
@@ -7,11 +7,11 @@ on:
branches: [ "master" ]
jobs:
build:
test:
runs-on: ubuntu-latest
strategy:
matrix:
example: [test]
env: [native, native17, native20]
steps:
- uses: actions/checkout@v4
@@ -27,10 +27,30 @@ jobs:
- name: Install PlatformIO Core
run: pip install --upgrade platformio
- name: Build PlatformIO Project
run: pio run
- name: Build Project
run: pio run --environment ${{ matrix.env }}
- name: Build PlatformIO examples
run: pio ci
env:
PLATFORMIO_CI_SRC: ${{ matrix.example }}
- name: Run Unit Tests
run: pio test --environment ${{ matrix.env }}
build-embedded:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: |
~/.cache/pip
~/.platformio/.cache
key: ${{ runner.os }}-pio
- uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install PlatformIO Core
run: pip install --upgrade platformio
- name: Build Embedded Targets
run: |
pio run --environment ttgo-lora32-v21
pio run --environment ttgo-t-beam
pio run --environment wiscore_rak4631