From 1187456fe9d18d1732603b5b0689ed2feb7f71f3 Mon Sep 17 00:00:00 2001 From: Brian Date: Wed, 1 Oct 2025 00:53:56 +1000 Subject: [PATCH] Update cmake-single-platform.yml --- .github/workflows/cmake-single-platform.yml | 36 ++++++++++++++++----- 1 file changed, 28 insertions(+), 8 deletions(-) diff --git a/.github/workflows/cmake-single-platform.yml b/.github/workflows/cmake-single-platform.yml index 2724b6f..429b397 100644 --- a/.github/workflows/cmake-single-platform.yml +++ b/.github/workflows/cmake-single-platform.yml @@ -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