From 513fe046b41406c16cc2eb3efe26e759f71e344c Mon Sep 17 00:00:00 2001 From: Brian Date: Wed, 1 Oct 2025 00:35:39 +1000 Subject: [PATCH 1/4] Create cmake-single-platform.yml --- .github/workflows/cmake-single-platform.yml | 29 +++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/cmake-single-platform.yml diff --git a/.github/workflows/cmake-single-platform.yml b/.github/workflows/cmake-single-platform.yml new file mode 100644 index 0000000..031539d --- /dev/null +++ b/.github/workflows/cmake-single-platform.yml @@ -0,0 +1,29 @@ +name: PlatformIO CI + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +jobs: + build: + 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 PlatformIO Project + run: pio run + From b82301bb77d1cb9a007878f1b0ed2bb4a960fbe1 Mon Sep 17 00:00:00 2001 From: Brian Date: Wed, 1 Oct 2025 00:47:38 +1000 Subject: [PATCH 2/4] Update cmake-single-platform.yml --- .github/workflows/cmake-single-platform.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/cmake-single-platform.yml b/.github/workflows/cmake-single-platform.yml index 031539d..2724b6f 100644 --- a/.github/workflows/cmake-single-platform.yml +++ b/.github/workflows/cmake-single-platform.yml @@ -9,6 +9,9 @@ on: jobs: build: runs-on: ubuntu-latest + strategy: + matrix: + example: [test] steps: - uses: actions/checkout@v4 @@ -27,3 +30,7 @@ jobs: - name: Build PlatformIO Project run: pio run + - name: Build PlatformIO examples + run: pio ci + env: + PLATFORMIO_CI_SRC: ${{ matrix.example }} From 1187456fe9d18d1732603b5b0689ed2feb7f71f3 Mon Sep 17 00:00:00 2001 From: Brian Date: Wed, 1 Oct 2025 00:53:56 +1000 Subject: [PATCH 3/4] 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 From a26fc0fa144f1c22d86c1cff4c94d0f373244168 Mon Sep 17 00:00:00 2001 From: Brian Date: Wed, 1 Oct 2025 01:00:57 +1000 Subject: [PATCH 4/4] Update cmake-single-platform.yml --- .github/workflows/cmake-single-platform.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/cmake-single-platform.yml b/.github/workflows/cmake-single-platform.yml index 429b397..eae08b0 100644 --- a/.github/workflows/cmake-single-platform.yml +++ b/.github/workflows/cmake-single-platform.yml @@ -53,4 +53,4 @@ jobs: run: | pio run --environment ttgo-lora32-v21 pio run --environment ttgo-t-beam - pio run --environment wiscore_rak4631 + # pio run --environment wiscore_rak4631 # Got UnknownBoard: Unknown board ID 'wiscore_rak4631'